Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to instantiate receiver GcmBroadcastReceiver #40

Open
GoogleCodeExporter opened this issue Mar 24, 2015 · 4 comments
Open

Unable to instantiate receiver GcmBroadcastReceiver #40

GoogleCodeExporter opened this issue Mar 24, 2015 · 4 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 28 Jan 2014 at 11:23

@GoogleCodeExporter
Copy link
Author

i am also facing the same issue.Any solutions???

Original comment by [email protected] on 30 Mar 2014 at 1:51

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 17 May 2014 at 2:40

@GoogleCodeExporter
Copy link
Author

[deleted comment]

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 28 May 2014 at 9:20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant