java.lang.NoClassDefFoundError的:使用java.lang.NoClassDefFoundError的com.google.android.gms.gcm.GoogleCloudMessaging: [英] java.lang.NoClassDefFoundError: com.google.android.gms.gcm.GoogleCloudMessaging using java.lang.NoClassDefFoundError:

查看:246
本文介绍了java.lang.NoClassDefFoundError的:使用java.lang.NoClassDefFoundError的com.google.android.gms.gcm.GoogleCloudMessaging:的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这实在是烦人。我已经浪费了整整一天,但没有收到任何正确的结果。我想谷歌云消息添加到我的应用程序。我使用Eclipse最后一个版本。 ADT最后一个版本。我已经添加了谷歌,播放services_lib如图书馆,加入构建路径的jar文件,但我的应用程序下面的code线下降:

This is really annoying. I've wasted a whole day but haven't received any proper result. I'm trying to add Google Cloud Messages into my app. I'm using Eclipse last version. ADT last version. I've added google-play-services_lib as Library, added the jar file in Build path but my app drops at the code line below:

GoogleCloudMessaging regId = GoogleCloudMessaging.getInstance(_.appContext);

java.lang.NoClassDefFoundError!

如何解决这个问题呢?

How to solve this problem?

推荐答案

问题是SDK和Eclipse的错误。图书馆谷歌播放-service.jar中没有以适当的方式连接。刚满重新安装的Eclipse(与ADT)和SDK帮助我。所有类别的连接问题(不仅仅是云消息)是<一个href=\"http://stackoverflow.com/questions/29903978/java-lang-noclassdeffounderror-for-any-google-play-services-feature\">here.
不要忘记<一个href=\"http://stackoverflow.com/questions/29916324/android-complation-freezes-if-google-play-services-jar-lib-is-added-into-my-hell\">memory在eclipse.ini文件中增加。

The problem is the bug of SDK and Eclipse. The library google-play-service.jar didn't attached in a proper way. Just full reinstalling Eclipse (with ADT) and SDK helped to me. The connected question about all classes (not only Cloud Messages) is here. Do not forget about memory increasing in eclipse.ini file.

这篇关于java.lang.NoClassDefFoundError的:使用java.lang.NoClassDefFoundError的com.google.android.gms.gcm.GoogleCloudMessaging:的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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