Mav*_*ven 1 java android google-maps
我的应用程序中有以下代码来启动Map View
private boolean servicesOk() {
int isAvailable = GooglePlayServicesUtil
.isGooglePlayServicesAvailable(this);
if (isAvailable == ConnectionResult.SUCCESS) {
return true;
} else if (GooglePlayServicesUtil.isUserRecoverableError(isAvailable)) {
Dialog dialog = GooglePlayServicesUtil.getErrorDialog(isAvailable,
this, GPS_ERRORDIALOG_REQUEST);
dialog.show();
} else {
Toast.makeText(this, "Connect Connect to Maps", Toast.LENGTH_SHORT)
.show();
}
return false;
}
Run Code Online (Sandbox Code Playgroud)
但是在检查中它isAvailable具有价值9,而且在LogCat其不断重复的信息中:Google Play services is invalid. Cannot recover.
任何人都可以告诉我,我犯的是什么错误?
| 归档时间: |
|
| 查看次数: |
6024 次 |
| 最近记录: |