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 service com.pushwoosh.PushFcmIntentService #79

Closed
rafaelfukuda opened this issue Oct 20, 2017 · 4 comments
Closed

Comments

@rafaelfukuda
Copy link

rafaelfukuda commented Oct 20, 2017

Hello!

We just noticed that some of our users are getting this exception:

Fatal Exception: java.lang.RuntimeException: Unable to instantiate service com.pushwoosh.PushFcmIntentService: java.lang.ClassNotFoundException: Didn't find class "com.pushwoosh.PushFcmIntentService" on path: DexPathList[[zip file "/data/app/com.lesara.app-2/base.apk"],nativeLibraryDirectories=[/data/app/com.lesara.app-2/lib/arm, /data/app/com.lesara.app-2/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]
       at android.app.ActivityThread.handleCreateService(ActivityThread.java:3841)
       at android.app.ActivityThread.access$2100(ActivityThread.java:229)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1909)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:148)
       at android.app.ActivityThread.main(ActivityThread.java:7331)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Caused by java.lang.ClassNotFoundException: Didn't find class "com.pushwoosh.PushFcmIntentService" on path: DexPathList[[zip file "/data/app/com.lesara.app-2/base.apk"],nativeLibraryDirectories=[/data/app/com.lesara.app-2/lib/arm, /data/app/com.lesara.app-2/base.apk!/lib/armeabi-v7a, /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 android.app.ActivityThread.handleCreateService(ActivityThread.java:3838)
       at android.app.ActivityThread.access$2100(ActivityThread.java:229)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1909)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:148)
       at android.app.ActivityThread.main(ActivityThread.java:7331)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)

The SDK version we are using is 5.1.1.

We don't use FCM and I double checked we are following the legacy GCM Integration guide.
Also we have this rule in our proguard file:

-keep class com.pushwoosh.** { *; }

Any insights on what might be the issue?

Thank you!

@wfhm
Copy link
Member

wfhm commented Oct 24, 2017

Hi,

Could you please share your app build.gradle?

@wfhm
Copy link
Member

wfhm commented Oct 31, 2017

@rafaelfukuda by any chance did you have time to review my previous comment?

@chriswiesner
Copy link

chriswiesner commented Nov 2, 2017

Same here.
Using 5.4.2 - but legacy GCM setup

dependencies in build.gradle:

compile d('pushwoosh') // 5.4.2
compile d('pushwooshBadge')
compile d('pushwooshGcm')
compile d('supportAppCompat') // 26.0.2
compile d('gmsGCM')` // 11.4.0

i suppose that starting with 5.1.0 there's the need of the FCM dependency, even though the legacy GCM is used

@wfhm
Copy link
Member

wfhm commented Nov 21, 2017

@chriswiesner should be fixed with 5.4.4.

Below you can find a list of app build.gradle dependencies used:

dependencies {
    implementation 'com.google.firebase:firebase-messaging:11.6.0'

    implementation 'com.android.support:appcompat-v7:27.+'
    implementation 'com.android.support:support-v4:27.+'
    implementation 'com.pushwoosh:pushwoosh:5.4.4'
    implementation 'com.pushwoosh:pushwoosh-gcm:5.4.4'
    implementation 'com.google.android.gms:play-services-gcm:11.6.0'
}

Project build.gradle:

buildscript {
    repositories {
        jcenter()
       google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.0.0'
        classpath 'com.google.gms:google-services:3.1.0'
    }
}

allprojects {
    repositories {
        jcenter()
        google()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

@wfhm wfhm closed this as completed Nov 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants