Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

FIrebase Messages Error since 5.0.2 #566

Closed
RaphaelJenni opened this issue Dec 8, 2017 · 3 comments
Closed

FIrebase Messages Error since 5.0.2 #566

RaphaelJenni opened this issue Dec 8, 2017 · 3 comments
Milestone

Comments

@RaphaelJenni
Copy link
Contributor

Firebase Messages causing some problems. I don't use them in my app, so I haven't loaded them, but I get this error:

System.err: java.lang.NoClassDefFoundError: Failed resolution of: Lorg/nativescript/plugins/firebase/MyFirebaseMessagingService;
System.err:     at org.nativescript.plugins.firebase.FirebasePluginLifecycleCallbacks.onActivityResumed(FirebasePluginLifecycleCallbacks.java:48)
System.err:     at android.app.Application.dispatchActivityResumed(Application.java:216)
System.err:     at android.app.Activity.onResume(Activity.java:1251)
System.err:     at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1269)
System.err:     at android.app.Activity.performResume(Activity.java:6783)
System.err:     at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3406)
System.err:     at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3469)
System.err:     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2732)
System.err:     at android.app.ActivityThread.-wrap12(ActivityThread.java)
System.err:     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
System.err:     at android.os.Handler.dispatchMessage(Handler.java:102)
System.err:     at android.os.Looper.loop(Looper.java:154)
System.err:     at android.app.ActivityThread.main(ActivityThread.java:6119)
System.err:     at java.lang.reflect.Method.invoke(Native Method)
System.err:     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
System.err:     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
System.err: Caused by: java.lang.ClassNotFoundException: org.nativescript.plugins.firebase.MyFirebaseMessagingService
System.err:     at java.lang.VMClassLoader.findLoadedClass(Native Method)
System.err:     at java.lang.ClassLoader.findLoadedClass(ClassLoader.java:742)
System.err:     at java.lang.ClassLoader.loadClass(ClassLoader.java:362)
System.err:     at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
System.err:     ... 16 more
System.err: Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/firebase/messaging/FirebaseMessagingService;
System.err:     ... 16 more
System.err: Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.messaging.FirebaseMessagingService" on path: DexPathList[[zip file "/data/app/com.APP.APPCode-1/base.apk"],nativeLibraryDirectories=[/data/app/com.APP.APPCode-1/lib/x86, /data/app/com.APP.APPCode-1/base.apk!/lib/x86, /system/lib, /vendor/lib]]
System.err:     at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
System.err:     at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
System.err:     at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
System.err:     ... 16 more

@EddyVerbruggen
Copy link
Owner

Oh.. I think FirebasePluginLifecycleCallbacks requires a guard..

@EddyVerbruggen
Copy link
Owner

5.0.4 is on npm, thanks for reporting it!

@RaphaelJenni
Copy link
Contributor Author

That was fast! Thanks allot!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants