java.lang.NoClassDefFoundError: GCMIntentService

蓝咒 提交于 2020-01-16 02:24:06

问题


My app used to work perfectly fine. Recently I updated eclipse (the plugins), and now I am getting this error. I have not changed my code so I know it should continue to work. but it does not. I am using the google eclipse plugin, which the updates changed to version 8.

Basically I still see everything in the android project. the gcm.jar is still there for example. And my manifest has not change. I can keep listing stuff but it would just be more words. Bottom line: It used to work fine.


回答1:


Just adding to @athor's answer, as you said that you updated everything. Its a high possibility that you updated android SDK-tools to latest version 22. This is a known issue and this has been discussed many times. You might want to check out following threads and picture.

Android app crashes after SDK-tools update version (NoClassDefFound, tool version 22)

ERROR : java.lang.NoClassDefFoundError: android.support.v4.content.LocalBroadcastManager

The picture and thread will help to find the exact location where to make changes. Hope this helps.




回答2:


In the new adt tools, you need to tick the checkbox for Android Private Libraries in the Java Build Path for your project.



来源:https://stackoverflow.com/questions/17035344/java-lang-noclassdeffounderror-gcmintentservice

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