Upon registering a device in Android, my Ionic Cordova app is crashing. I am using the latest 3.6.11 sdk.

Logcat outputs the following exception in 'com.pushwoosh.GCMRegistrationService'

com.tribex.shabbat E/AndroidRuntime﹕ FATAL EXCEPTION: IntentService[com.pushwoosh.GCMRegistrationService] Process: com.tribex.shabbat, PID: 22652 java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/iid/InstanceID; at com.pushwoosh.GCMRegistrationService.register(Unknown Source) at com.pushwoosh.GCMRegistrationService.onHandleIntent(Unknown Source) at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:145) at android.os.HandlerThread.run(HandlerThread.java:61) Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.iid.InstanceID" on path: DexPathList[[zip file "/data/app/com.tribex.shabbat-2/base.apk"],nativeLibraryDirectories=[/data/app/com.tribex.shabbat-2/lib/arm, /vendor/lib, /system/lib]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56) at java.lang.ClassLoader.loadClass(ClassLoader.java:511) at java.lang.ClassLoader.loadClass(ClassLoader.java:469)             at com.pushwoosh.GCMRegistrationService.register(Unknown Source)             at com.pushwoosh.GCMRegistrationService.onHandleIntent(Unknown Source)             at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)             at android.os.Handler.dispatchMessage(Handler.java:102)             at android.os.Looper.loop(Looper.java:145)             at android.os.HandlerThread.run(HandlerThread.java:61) Suppressed: java.lang.ClassNotFoundException: com.google.android.gms.iid.InstanceID at java.lang.Class.classForName(Native Method) at java.lang.BootClassLoader.findClass(ClassLoader.java:781) at java.lang.BootClassLoader.loadClass(ClassLoader.java:841) at java.lang.ClassLoader.loadClass(ClassLoader.java:504)


I have checked for any possible conflicting plugins

I have verified that build.gradle adds google play services.

Furthermore - I have been using the prev. version 3.5.4 successfully in the identical project.

asked 13 Oct '15, 22:26
ykoblick's gravatar image


Your Google Play Servicer.jar is outdated:

java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/iid/InstanceID;

Please update your Android SDK.

permanent link
answered 19 Oct '15, 21:27
shader's gravatar image


Thank you so much. This completely solved my issue.

permanent link
answered 20 Oct '15, 16:20
ykoblick's gravatar image


Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 13 Oct '15, 22:26

question was seen: 1,767 times

last updated: 20 Oct '15, 16:20