失败解决googleplayservices [英] failed resolving googleplayservices

查看:912
本文介绍了失败解决googleplayservices的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个Android应用程序使用谷歌播放服务,因为它似乎是这样做的新的推荐方式是位置感知。我用我的Andr​​oid开发者网站设置我的项目中找到的教程。这似乎是正确的,并建立正常,但是,当活动只是之前对已在谷歌播放服务的依赖性活动开始我看到日志猫以下。

I am trying to create an android application that is location aware using google play services as it seems that is the new recommended fashion for doing this. I have used the tutorial I found on the android developers site to setup my project. It seems correct and builds fine, however, when the activity just BEFORE the activity that has the google play services dependencies starts I see the following in log cat.

06-18 01:31:04.126: I/dalvikvm(30480): Failed resolving Lcom/example/activities/NewActivity; interface 1045 'Lcom/google/android/gms/common/GooglePlayServicesClient$ConnectionCallbacks;'
06-18 01:31:04.126: W/dalvikvm(30480): Link of class 'Lcom/example/activities/NewActivity;' failed
06-18 01:31:04.126: W/dalvikvm(30480): Unable to resolve superclass of Lcom/example/activities/NewActivity_; (930)
06-18 01:31:04.126: W/dalvikvm(30480): Link of class 'Lcom/example/activities/NewActivity_;' failed
06-18 01:31:04.126: E/dalvikvm(30480): Could not find class 'com.example.activities.NewActivity_', referenced from method com.example.activities.HomeActivity.clickCurrentDonation
06-18 01:31:04.126: W/dalvikvm(30480): VFY: unable to resolve const-class 936 (Lcom/example/activities/NewActivity_;) in Lcom/example/activities/HomeActivity;

下面NewActivity是使用谷歌播放服务是无法加载和HomeActivity是调用NewActivity该活动的活动。这些错误出现在HomeActivity的负载,甚至之前,我尝试启动NewActivity。

Here NewActivity is the activity using google play services that is unable to load and HomeActivity is the activity that calls NewActivity. These errors appear on load of the HomeActivity even before I try to start NewActivity.

我已经确认这工作正常,如果我不包括谷歌播放服务code。

I have confirmed that this works normally if I do not include the google play services code.

的唯一的事情我做的,这似乎是比规范或比教程不同的是,我使用的是Android的注解项目这就是为什么你会看到的NewActivity_这是一个生成的类此用途上述引用基于$ C $三我写的基类。

The only thing I am doing that seems to be different than the norm or than the tutorial is that I am using the android-annotations project which is why you'll see references above to the NewActivity_ which is a generated class this uses based on the code I write in the base class.

有没有其他人遇到这种或有任何想法如何解决?

Has anyone else encountered this or have any idea how to resolve?

感谢您的帮助!

推荐答案

刚刚重新安装谷歌从SDK管理器中播放服务,并尝试重新连接和洁净生成项目。

Just re install the Google Play services from SDK Manager and try to link again and clean- build the project.

如果它仍然无法正常工作,另外下载SDK文件夹和安装谷歌播放服务,并导入谷歌播放服务项目在您的工作空间,并链接到您当前的项目。

If still It does not work, download another SDK folder and install Google Play Services and import the Google Play Services project in your workspace and link to your current project.

我不knw..Its比较陌生,但它为我工作。

I don't knw..Its quite strange But It worked for me.

这篇关于失败解决googleplayservices的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆