Getting Noclassdeffounderror With Google Cloud Messaging (gcm) On Nexus 4
I have the gcm.jar in my classpath, so eclipse compiles the project but it fails on my Nexus 4 device with 02-24 11:52:12.645: E/AndroidRuntime(30240): FATAL EXCEPTION: main 02-24
Solution 1:
I have the gcm.jar in my classpath
It needs to be in your project's libs/
directory. Do not just manipulate the Eclipse build path manually -- that will allow you compile against the JAR but does not ship the JAR with your APK. Putting the JAR in libs/
does both.
Post a Comment for "Getting Noclassdeffounderror With Google Cloud Messaging (gcm) On Nexus 4"