NoClassDefFoundError on GCMRegistrationService



  • Avatar


    • Is your app native or cross-platform?
    • Are you using the latest SDK/plugin?
    • Have you followed the guide carefully?
    • Does the issue reproduce with our sample app? (see the link in the integration guide for your platform)
  • Avatar
    Max Konev

    Make sure you have included Google Play Services library.

    6.1 Add Google Play Services library as outlined in Android Documentation:

    6.2 Add Android Support Library V4 (android-support-v4.jar) as outlined here:

  • Avatar
    Pushpendra Kumar

    I was try to integrate in Cordova Phonegap and follow this link but i am getting following error

    E/AndroidRuntime(6910): FATAL EXCEPTION: IntentService[com.pushwoosh.GCMRegistrationService] E/AndroidRuntime(6910): Process: com.inspark.www, PID: 6910

    E/AndroidRuntime(6910): java.lang.NoClassDefFoundError:

    E/AndroidRuntime(6910): at com.pushwoosh.GCMRegistrationService.register(Unknown Source)

    E/AndroidRuntime(6910): at com.pushwoosh.GCMRegistrationService.onHandleIntent(Unknown Source)

    E/AndroidRuntime(6910): at$ServiceHandler.handleMessage(

    E/AndroidRuntime(6910): at android.os.Handler.dispatchMessage(

    E/AndroidRuntime(6910): at android.os.Looper.loop(

    E/AndroidRuntime(6910): at

    D/CordovaActivity(6910): Paused the activity.

    i have integrated in IOS and working fine. Please help me to solve this error.

  • Avatar
    James Douglas

    Exactly the same error i'm getting, i'm at a loss as to what's causing it too. Works fine on iOS

    Using phonegap build for android, works fine native in iOS

    FATAL EXCEPTION: IntentService[com.pushwoosh.GCMRegistrationService] Process: com.nethappy, PID: 11818 java.lang.NoSuchMethodError: No virtual method getNoBackupFilesDir(Landroid/content/Context;)Ljava/io/File; in class Landroid/support/v4/content/ContextCompat; or its super classes (declaration of '' appears in /data/app/com.nethappy-1/base.apk) at Source) at<init>(Unknown Source) at<init>(Unknown Source) at Source) at Source) at com.pushwoosh.GCMRegistrationService.register(Unknown Source) at com.pushwoosh.GCMRegistrationService.onHandleIntent(Unknown Source) at$ServiceHandler.handleMessage( at android.os.Handler.dispatchMessage( at android.os.Looper.loop( at

  • Avatar
    James Douglas

    right: solved my issue. I had a dead plugin, specifically push.plugin that was causing everything to die. Turns out I didn't need it anyway, but that's what was causing my crashes.

  • Avatar
    Emre Dagli

    Hello, I installed 4.2.0 "Pushwoosh" plugin I get

    02-13 01:32:10.909: E/AndroidRuntime(31754): FATAL EXCEPTION: IntentService[GCMRegistrationService]
    02-13 01:32:10.909: E/AndroidRuntime(31754): Process:, PID: 31754
    02-13 01:32:10.909: E/AndroidRuntime(31754): java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/android/gms/iid/InstanceID;
    02-13 01:32:10.909: E/AndroidRuntime(31754):    at com.pushwoosh.GCMRegistrationService.register(Unknown Source)
    02-13 01:32:10.909: E/AndroidRuntime(31754):    at com.pushwoosh.GCMRegistrationService.onHandleIntent(Unknown Source)

    Error on after lunching android application on my device.

    But before that I had a problem on:

    <meta-data android:name="" android:value="@integer/google_play_services_version" />

    I read as a solution of copying "res/values/version.xml" file "android-sdks/extras/google/google_play_services/libproject/google-play-services_lib" project. So I did that step. In version.xml file:

    <integer name="google_play_services_version">8487000</integer>

    Thanks for your help.

  • Avatar
    Emre Dagli

    "I mean I am using pushwoosh cordova plugin"

Please sign in to leave a comment.