我试图整合谷歌云消息与我的Android项目。到目前为止,我跟所有的意见,我发现,安装了谷歌播放服务,然后检查它作为一个项目,并添加为引用的项目,以我自己的项目。
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!
相关推荐
最新文章