我正在开发一个位置感知的 Android 应用程序,直到今天它一直运行良好。在进行一些修改并尝试在我的设备中重新运行该应用程序后,它在检查 Google Play 服务时突然返回 SERVICE_INVALID(错误代码 9)。
private boolean isGooglePlay(){
int status = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);
Toast.makeText(getApplicationContext(), ""+status, Toast.LENGTH_SHORT).show();
if(status == ConnectionResult.SUCCESS){
return true;
}
else{
((Dialog) GooglePlayServicesUtil.getErrorDialog(status, this, 10)).show();
return false;
}
}
提前致谢