com.google.android.gms.common.GooglePlayServicesUtil class not found error (again)

自闭症网瘾萝莉.ら 提交于 2019-12-13 21:27:19

问题


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.

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


回答1:


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!



来源:https://stackoverflow.com/questions/24727465/com-google-android-gms-common-googleplayservicesutil-class-not-found-error-agai

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!