草庐IT

GooglePlayServicesRepairableExcep

全部标签

java - 如何处理 GooglePlayServicesRepairableException 和 GooglePlayServicesNotAvailableException

我阅读了官方文档,这让我很困惑。有什么区别GooglePlayServicesRepairableException和GooglePlayServicesNotAvailableException。什么时候扔?如何处理这些错误?如何向用户显示一个对话框,他可以在其中启用/更新/安装服务。等等privatevoidstartLocationPicker(){try{newPlacePicker.IntentBuilder().build(this);}catch(GooglePlayServicesRepairableExceptione){}catch(GooglePlayServic