java.lang.RuntimeException: Unable to create application com.ourcompany.android.OurApp: java.lang.IllegalStateException: No receivers for action com.google.android.c2dm.intent.REGISTRATION
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4394)
at android.app.ActivityThread.access$1300(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1294)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5041)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.IllegalStateException: No receivers for action com.google.android.c2dm.intent.REGISTRATION
at com.google.android.gcm.GCMRegistrar.checkReceiver(GCMRegistrar.java:184)
at com.google.android.gcm.GCMRegistrar.checkManifest(GCMRegistrar.java:169)
at com.ourcompany.android.push.gcm.GCMHost.initializeService(GCMHost.java:26)
at com.ourcompany.android.push.PushService.initializePushMessaging(PushService.java:36)
at com.ourcompany.android.OurApp.onCreate(OurApp.java:74)
at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1000)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4391)
... 10 more
All I can find on the interwebs for this IllegalStateException is places where things have been mis-configured in the AndroidManifest.xml, and hence they never work. Our app is working > 99% of the time, push notifications are in general working, which makes this IllegalStateException somewhat puzzling. I'm thinking the best work-around will be to just catch the Exception and silently carry on, but if anybody knows how to actually *fix* it, that would obviously be better.
The crashes have happened on DROID RAZR and Nexus 7 devices amongst others, so it's not a problem confined to some obscure no-name device.