fdln / gcm

Automatically exported from code.google.com/p/gcm
Apache License 2.0
0 stars 0 forks source link

Unable to instantiate receiver GcmBroadcastReceiver #40

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm try to compile and use sample code. I've added google_play_service_lib and 
it compile and run, but if i try to send a push notification it crashes.
On logcat i see:

ava.lang.RuntimeException: Unable to instantiate receiver 
com.google.android.gcm.demo.app.GcmBroadcastReceiver: 
java.lang.ClassNotFoundException: Didn't find class 
"com.google.android.gcm.demo.app.GcmBroadcastReceiver" on path: 
DexPathList[[zip file 
"/data/app/com.google.android.gcm.demo.app-2.apk"],nativeLibraryDirectories=[/da
ta/app-lib/com.google.android.gcm.demo.app-2, /vendor/lib, /system/lib]]
.......
.......
Caused by: java.lang.ClassNotFoundException: Didn't find class 
"com.google.android.gcm.demo.app.GcmBroadcastReceiver" on path: 
DexPathList[[zip file 
"/data/app/com.google.android.gcm.demo.app-2.apk"],nativeLibraryDirectories=[/da
ta/app-lib/com.google.android.gcm.demo.app-2, /vendor/lib, /system/lib]]

I've this error also with my app. Where are my errors? 

Regards

Original issue reported on code.google.com by mitsus...@gmail.com on 28 Jan 2014 at 11:23

GoogleCodeExporter commented 9 years ago
i am also facing the same issue.Any solutions???

Original comment by jadhavhn...@gmail.com on 30 Mar 2014 at 1:51

GoogleCodeExporter commented 9 years ago
I'm also facing this issue. I've tried everything I found on Stackoverflow and 
some others sites. But it didn't work out for me :(

Original comment by olivier....@gmail.com on 17 May 2014 at 2:40

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Just refactor the package name[com.google.android.gcm.demo.app To any other 
name com.abc.]... it is working for me:-)

Original comment by jagadish...@gmail.com on 28 May 2014 at 9:20