Android Question Firebase notification issue

Status
Not open for further replies.

Reminisce

Active Member
Okay, this is a tricky issue I will try to be as detailed as possible.
I want to implement push notification on my app, and I have followed all the steps.
*added all the required manifest snippets
*created the Firebase Messaging service.

I was getting the "SubscribeToTopics" method not found error, after searching the forum I discovered it was my sdk. So I updated all the Firebase update on my sdk manager.

Now to the main problem. My app compiles fine, no error but as soon as the app launches, it stops immediately.

I checked my log, but nothing was there. I had to switch to unfiltered logs and after carefully studying it, I saw an error.

I'm not with my laptop would have posted the full log, but it has something like:

"FireBaseAuthRegister" class not found.

I will post the log by day break.

This issue is driving me nuts, I have reinstalled my android sdk and the Firebase libraries from my sdk manager, still it persists.

What am I doing wrong? ? ?
 

Reminisce

Active Member
Unfiltered log:
Class com.google.firebase.auth.FirebaseAuthRegistrar is not an found.

java.lang.ClassNotFoundException: com.google.firebase.auth.FirebaseAuthRegistrar

    at java.lang.Class.classForName(Native Method)
    at java.lang.Class.forName(Class.java:309)

    at java.lang.Class.forName(Class.java:273)

    at com.google.firebase.components.ComponentDiscovery.instantiate(com.google.firebase:firebase-components@@16.0.0:80)

    at com.google.firebase.components.ComponentDiscovery.discover(com.google.firebase:firebase-components@@16.0.0:73)

    at com.google.firebase.FirebaseApp.<init>(com.google.firebase:firebase-common@@19.3.0:404)

    at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@19.3.0:300)

    at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@19.3.0:268)

    at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@19.3.0:253)

    at com.google.firebase.provider.FirebaseInitProvider.onCreate(com.google.firebase:firebase-common@@19.3.0:51)

    at android.content.ContentProvider.attachInfo(ContentProvider.java:1696)

    at android.content.ContentProvider.attachInfo(ContentProvider.java:1671)

    at com.google.firebase.provider.FirebaseInitProvider.attachInfo(com.google.firebase:firebase-common@@19.3.0:45)

    at android.app.ActivityThread.installProvider(ActivityThread.java:5038)

    at android.app.ActivityThread.installContentProviders(ActivityThread.java:4633)

    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4573)

    at android.app.ActivityThread.access$1500(ActivityThread.java:153)

    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1366)

    at android.os.Handler.dispatchMessage(Handler.java:102)

    at android.os.Looper.loop(Looper.java:135)

    at android.app.ActivityThread.main(ActivityThread.java:5293)

    at java.lang.reflect.Method.invoke(Native Method)

    at java.lang.reflect.Method.invoke(Method.java:372)

    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)

    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.auth.FirebaseAuthRegistrar" on path: DexPathList[[zip file "/data/app/order.dcrownapp.cybtech-2/base.apk"],nativeLibraryDirectories=[/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)

    ... 25 more

    Suppressed: java.lang.ClassNotFoundException: com.google.firebase.auth.FirebaseAuthRegistrar

        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)

        ... 26 more

    Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available

Class com.google.firebase.firestore.FirestoreRegistrar is not an found.

java.lang.ClassNotFoundException: com.google.firebase.firestore.FirestoreRegistrar

    at java.lang.Class.classForName(Native Method)

    at java.lang.Class.forName(Class.java:309)

    at java.lang.Class.forName(Class.java:273)

    at com.google.firebase.components.ComponentDiscovery.instantiate(com.google.firebase:firebase-components@@16.0.0:80)

    at com.google.firebase.components.ComponentDiscovery.discover(com.google.firebase:firebase-components@@16.0.0:73)

    at com.google.firebase.FirebaseApp.<init>(com.google.firebase:firebase-common@@19.3.0:404)

    at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@19.3.0:300)

    at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@19.3.0:268)

    at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@19.3.0:253)

    at com.google.firebase.provider.FirebaseInitProvider.onCreate(com.google.firebase:firebase-common@@19.3.0:51)

    at android.content.ContentProvider.attachInfo(ContentProvider.java:1696)

    at android.content.ContentProvider.attachInfo(ContentProvider.java:1671)

    at com.google.firebase.provider.FirebaseInitProvider.attachInfo(com.google.firebase:firebase-common@@19.3.0:45)

    at android.app.ActivityThread.installProvider(ActivityThread.java:5038)

    at android.app.ActivityThread.installContentProviders(ActivityThread.java:4633)

    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4573)

    at android.app.ActivityThread.access$1500(ActivityThread.java:153)

    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1366)

    at android.os.Handler.dispatchMessage(Handler.java:102)

    at android.os.Looper.loop(Looper.java:135)

    at android.app.ActivityThread.main(ActivityThread.java:5293)

    at java.lang.reflect.Method.invoke(Native Method)

    at java.lang.reflect.Method.invoke(Method.java:372)

    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)

    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.firestore.FirestoreRegistrar" on path: DexPathList[[zip file "/data/app/order.dcrownapp.cybtech-2/base.apk"],nativeLibraryDirectories=[/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)

    ... 25 more

    Suppressed: java.lang.ClassNotFoundException: com.google.firebase.firestore.FirestoreRegistrar

        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)

        ... 26 more

    Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available

Class com.google.firebase.database.DatabaseRegistrar is not an found.

java.lang.ClassNotFoundException: com.google.firebase.database.DatabaseRegistrar

    at java.lang.Class.classForName(Native Method)

    at java.lang.Class.forName(Class.java:309)

    at java.lang.Class.forName(Class.java:273)

    at com.google.firebase.components.ComponentDiscovery.instantiate(com.google.firebase:firebase-components@@16.0.0:80)

    at com.google.firebase.components.ComponentDiscovery.discover(com.google.firebase:firebase-components@@16.0.0:73)

    at com.google.firebase.FirebaseApp.<init>(com.google.firebase:firebase-common@@19.3.0:404)

    at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@19.3.0:300)

    at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@19.3.0:268)

    at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@19.3.0:253)

    at com.google.firebase.provider.FirebaseInitProvider.onCreate(com.google.firebase:firebase-common@@19.3.0:51)

    at android.content.ContentProvider.attachInfo(ContentProvider.java:1696)

    at android.content.ContentProvider.attachInfo(ContentProvider.java:1671)

    at com.google.firebase.provider.FirebaseInitProvider.attachInfo(com.google.firebase:firebase-common@@19.3.0:45)

    at android.app.ActivityThread.installProvider(ActivityThread.java:5038)

    at android.app.ActivityThread.installContentProviders(ActivityThread.java:4633)

    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4573)

    at android.app.ActivityThread.access$1500(ActivityThread.java:153)

    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1366)

    at android.os.Handler.dispatchMessage(Handler.java:102)

    at android.os.Looper.loop(Looper.java:135)

    at android.app.ActivityThread.main(ActivityThread.java:5293)

    at java.lang.reflect.Method.invoke(Native Method)

    at java.lang.reflect.Method.invoke(Method.java:372)

    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)

    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.database.DatabaseRegistrar" on path: DexPathList[[zip file "/data/app/order.dcrownapp.cybtech-2/base.apk"],nativeLibraryDirectories=[/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)

    ... 25 more

    Suppressed: java.lang.ClassNotFoundException: com.google.firebase.database.DatabaseRegistrar

        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)

        ... 26 more

    Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available

Class com.google.firebase.storage.StorageRegistrar is not an found.

java.lang.ClassNotFoundException: com.google.firebase.storage.StorageRegistrar

    at java.lang.Class.classForName(Native Method)

    at java.lang.Class.forName(Class.java:309)

    at java.lang.Class.forName(Class.java:273)

    at com.google.firebase.components.ComponentDiscovery.instantiate(com.google.firebase:firebase-components@@16.0.0:80)

    at com.google.firebase.components.ComponentDiscovery.discover(com.google.firebase:firebase-components@@16.0.0:73)

    at com.google.firebase.FirebaseApp.<init>(com.google.firebase:firebase-common@@19.3.0:404)

    at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@19.3.0:300)

    at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@19.3.0:268)

    at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@19.3.0:253)

    at com.google.firebase.provider.FirebaseInitProvider.onCreate(com.google.firebase:firebase-common@@19.3.0:51)

    at android.content.ContentProvider.attachInfo(ContentProvider.java:1696)

    at android.content.ContentProvider.attachInfo(ContentProvider.java:1671)

    at com.google.firebase.provider.FirebaseInitProvider.attachInfo(com.google.firebase:firebase-common@@19.3.0:45)

    at android.app.ActivityThread.installProvider(ActivityThread.java:5038)

    at android.app.ActivityThread.installContentProviders(ActivityThread.java:4633)

    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4573)

    at android.app.ActivityThread.access$1500(ActivityThread.java:153)

    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1366)

    at android.os.Handler.dispatchMessage(Handler.java:102)

    at android.os.Looper.loop(Looper.java:135)

    at android.app.ActivityThread.main(ActivityThread.java:5293)

    at java.lang.reflect.Method.invoke(Native Method)

    at java.lang.reflect.Method.invoke(Method.java:372)

    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)

    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.firebase.storage.StorageRegistrar" on path: DexPathList[[zip file "/data/app/order.dcrownapp.cybtech-2/base.apk"],nativeLibraryDirectories=[/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)

    ... 25 more

    Suppressed: java.lang.ClassNotFoundException: com.google.firebase.storage.StorageRegistrar

        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)

        ... 26 more

    Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available

Shutting down VM

--------- beginning of crash

FATAL EXCEPTION: main

Process: order.dcrownapp.cybtech, PID: 2894

java.lang.RuntimeException: Unable to get provider com.google.firebase.provider.FirebaseInitProvider: com.google.firebase.components.MissingDependencyException: Unsatisfied dependency for component Component<[class com.google.firebase.messaging.FirebaseMessaging]>{1, type=0, deps=[Dependency{anInterface=interface com.google.android.datatransport.TransportFactory, type=optional, direct=true}, Dependency{anInterface=interface com.google.firebase.heartbeatinfo.HeartBeatInfo, type=required, direct=true}, Dependency{anInterface=class com.google.firebase.FirebaseApp, type=required, direct=true}, Dependency{anInterface=interface com.google.firebase.installations.FirebaseInstallationsApi, type=required, direct=true}, Dependency{anInterface=interface com.google.firebase.platforminfo.UserAgentPublisher, type=required, direct=true}, Dependency{anInterface=class com.google.firebase.iid.FirebaseInstanceId, type=required, direct=true}]}: interface com.google.firebase.installations.FirebaseInstallationsApi

    at android.app.ActivityThread.installProvider(ActivityThread.java:5041)

    at android.app.ActivityThread.installContentProviders(ActivityThread.java:4633)

    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:4573)

    at android.app.ActivityThread.access$1500(ActivityThread.java:153)

    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1366)

    at android.os.Handler.dispatchMessage(Handler.java:102)

    at android.os.Looper.loop(Looper.java:135)

    at android.app.ActivityThread.main(ActivityThread.java:5293)

    at java.lang.reflect.Method.invoke(Native Method)

    at java.lang.reflect.Method.invoke(Method.java:372)

    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)

    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

Caused by: com.google.firebase.components.MissingDependencyException: Unsatisfied dependency for component Component<[class com.google.firebase.messaging.FirebaseMessaging]>{1, type=0, deps=[Dependency{anInterface=interface com.google.android.datatransport.TransportFactory, type=optional, direct=true}, Dependency{anInterface=interface com.google.firebase.heartbeatinfo.HeartBeatInfo, type=required, direct=true}, Dependency{anInterface=class com.google.firebase.FirebaseApp, type=required, direct=true}, Dependency{anInterface=interface com.google.firebase.installations.FirebaseInstallationsApi, type=required, direct=true}, Dependency{anInterface=interface com.google.firebase.platforminfo.UserAgentPublisher, type=required, direct=true}, Dependency{anInterface=class com.google.firebase.iid.FirebaseInstanceId, type=required, direct=true}]}: interface com.google.firebase.installations.FirebaseInstallationsApi

    at com.google.firebase.components.ComponentRuntime.validateDependencies(com.google.firebase:firebase-components@@16.0.0:170)

    at com.google.firebase.components.ComponentRuntime.processInstanceComponents(com.google.firebase:firebase-components@@16.0.0:89)

    at com.google.firebase.components.ComponentRuntime.<init>(com.google.firebase:firebase-components@@16.0.0:73)

    at com.google.firebase.FirebaseApp.<init>(com.google.firebase:firebase-common@@19.3.0:418)

    at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@19.3.0:300)

    at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@19.3.0:268)

    at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@19.3.0:253)

    at com.google.firebase.provider.FirebaseInitProvider.onCreate(com.google.firebase:firebase-common@@19.3.0:51)

    at android.content.ContentProvider.attachInfo(ContentProvider.java:1696)

    at android.content.ContentProvider.attachInfo(ContentProvider.java:1671)

    at com.google.firebase.provider.FirebaseInitProvider.attachInfo(com.google.firebase:firebase-common@@19.3.0:45)

    at android.app.ActivityThread.installProvider(ActivityThread.java:5038)

    ... 11 more
 
Upvote 0

Reminisce

Active Member
1.JPG2.JPG3.JPG5.JPG6.JPG8.JPG
My sdk manager showing some installed firebase components.
I left out some screenshots tho.
 
Upvote 0
Status
Not open for further replies.
Top