本文介绍了谷歌播放服务的例子:" connectionResult解决不了"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当我试图按照如何检查是否谷歌播放服务安装我收到以下错误的例子:connectionResult不能得到解决,在servicesConnected方法中的行
when I'm trying to follow the example on how to check if Google Play Services is installed I receive the following error: "connectionResult cannot be resolved" in the line inside servicesConnected method
int errorCode = connectionResult.getErrorCode();
What can be missing? I'm copying and pasting it.I'm following the example here
谢谢!
推荐答案
这是在这个例子中的一个错误。而使用这样的:
It's a bug in the example. Use this instead:
} else {
// Get the error code
// Get the error dialog from Google Play services
Dialog errorDialog = GooglePlayServicesUtil.getErrorDialog(
resultCode,
this,
CONNECTION_FAILURE_RESOLUTION_REQUEST);
这篇关于谷歌播放服务的例子:" connectionResult解决不了"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!