当我尝试按照有关如何检查是否安装了 Google Play 服务的示例进行操作时,我收到以下错误:servicesConnected 方法内的行中出现“connectionResult cannot be resolved”
int errorCode = connectionResult.getErrorCode();
可以缺少什么?我正在复制并粘贴它。 我正在按照示例 here
谢谢!
最佳答案
这是示例中的错误。改用这个:
} else {
// Get the error code
// Get the error dialog from Google Play services
Dialog errorDialog = GooglePlayServicesUtil.getErrorDialog(
resultCode,
this,
CONNECTION_FAILURE_RESOLUTION_REQUEST);
关于android - Google Play 服务示例 : "connectionResult cannot be resolved",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17303941/