Skip to content Skip to sidebar Skip to footer

Java.lang.runtimeexception: Unable To Instantiate Service Com.google.android.gcm.gcmbroadcastreceiver

I am developing an android App. I am implementing push notification with GCM. However, I cannot receive push notification from my server. The error log says below. java.lang.Runtim

Solution 1:

In Manifest you wrote:

android:name="com.google.android.gcm.GCMBroadcastReceiver"

But your GcmBroadcastReceiver.java is in package net.myapp

Change android:name="com.google.android.gcm.GCMBroadcastReceiver" to android:name="net.myapp.GcmBroadcastReceiver"

Post a Comment for "Java.lang.runtimeexception: Unable To Instantiate Service Com.google.android.gcm.gcmbroadcastreceiver"