com.google.android.gms.common.GooglePlayServicesUtil类未找到错误(再次) [英] com.google.android.gms.common.GooglePlayServicesUtil class not found error (again)

查看:303
本文介绍了com.google.android.gms.common.GooglePlayServicesUtil类未找到错误(再次)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图整合谷歌云消息与我的Andr​​oid项目。到目前为止,我跟所有的意见,我发现,安装了谷歌播放服务,然后检查它作为一个项目,并添加为引用的项目,以我自己的项目。

I'm trying to integrate Google Cloud Messaging with my Android Project. So far I followed all advice I found and installed the Google Play Services, then checked it out as a project and added as a referenced project to my own project.

我发现了类似的问题,但没有一个答案为我工作。我仍然可以类没有发现错误。

I found similar questions but none of the answers worked for me. I still get the class not found error.

当我导入它在Java code它发现它就好了,但是当我尝试我的设备上运行,这条线抛出异常(没有别的到目前为止引用谷歌播放的lib项目):

When I import it in java code it finds it just fine, but when I try to run it on my device, this line throws the exception (nothing else so far references the google play lib project):

        int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);

我的想法,任何可能帮助我吗?谢谢

I am out of ideas, anything which might help me? Thank you

推荐答案

我是在绝望准确位置,然后我尝试了最后一招,看的这里

I was in the exact desparate position and then I tried the last resort, see here.

我希望它会为你正常工作。干杯!

I hope that it will work for you as well. Cheers!

这篇关于com.google.android.gms.common.GooglePlayServicesUtil类未找到错误(再次)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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