Android Question Firebase Crashlytics Integration Error

Ederson Kerber

Member
Licensed User
I'm implementing Crashlytics in my projects. I followed everything explained at https://www.b4x.com/android/forum/threads/integrating-firebase-services.67692/#content and also https://www.b4x.com/android/forum/threads/ crashlytics-crash-reports.87510/#content

I installed the latest version of Android SDK + Required Resources from https://www.b4x.com/b4a.html
I can see my active device in the Firebase console, but when I force an application error it doesn't show up in the Firebase console.
- All recommended items in the SDK are installed.
- Crashlytics is active on the Firebase dashboard
- SDK Version: 6609375
- B4A Version: 10.90 beta #1
- B4A Sdk Manager: 4.00

Below is the unfiltered log when forced an error when clicking the app button:

B4X:
Logger conectado a:  Xiaomi Redmi Note 9S
--------- beginning of main
SetHeapTaggingLevel: tag level set to 0
Not starting debugger since process cannot load the jdwp agent.
Returning zygote-cached class loader: /system/framework/android.test.base.jar
Connecting to perf service.
No Network Security Config specified, using platform default
No Network Security Config specified, using platform default
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:454)
    at java.lang.Class.forName(Class.java:379)
    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>(FirebaseApp.java:419)
    at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:300)
    at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:268)
    at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:253)
    at com.google.firebase.provider.FirebaseInitProvider.onCreate(FirebaseInitProvider.java:51)
    at android.content.ContentProvider.attachInfo(ContentProvider.java:2411)
    at android.content.ContentProvider.attachInfo(ContentProvider.java:2381)
    at com.google.firebase.provider.FirebaseInitProvider.attachInfo(FirebaseInitProvider.java:45)
    at android.app.ActivityThread.installProvider(ActivityThread.java:7443)
    at android.app.ActivityThread.installContentProviders(ActivityThread.java:6922)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6817)
    at android.app.ActivityThread.access$1400(ActivityThread.java:244)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1951)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loop(Looper.java:236)
    at android.app.ActivityThread.main(ActivityThread.java:7861)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:600)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)
Caused by: java.lang.ClassNotFoundException: com.google.firebase.auth.FirebaseAuthRegistrar
    ... 24 more
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:454)
    at java.lang.Class.forName(Class.java:379)
    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>(FirebaseApp.java:419)
    at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:300)
    at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:268)
    at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:253)
    at com.google.firebase.provider.FirebaseInitProvider.onCreate(FirebaseInitProvider.java:51)
    at android.content.ContentProvider.attachInfo(ContentProvider.java:2411)
    at android.content.ContentProvider.attachInfo(ContentProvider.java:2381)
    at com.google.firebase.provider.FirebaseInitProvider.attachInfo(FirebaseInitProvider.java:45)
    at android.app.ActivityThread.installProvider(ActivityThread.java:7443)
    at android.app.ActivityThread.installContentProviders(ActivityThread.java:6922)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6817)
    at android.app.ActivityThread.access$1400(ActivityThread.java:244)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1951)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loop(Looper.java:236)
    at android.app.ActivityThread.main(ActivityThread.java:7861)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:600)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)
Caused by: java.lang.ClassNotFoundException: com.google.firebase.firestore.FirestoreRegistrar
    ... 24 more
Class com.google.firebase.messaging.FirebaseMessagingRegistrar is not an found.
java.lang.ClassNotFoundException: com.google.firebase.messaging.FirebaseMessagingRegistrar
    at java.lang.Class.classForName(Native Method)
    at java.lang.Class.forName(Class.java:454)
    at java.lang.Class.forName(Class.java:379)
    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>(FirebaseApp.java:419)
    at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:300)
    at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:268)
    at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:253)
    at com.google.firebase.provider.FirebaseInitProvider.onCreate(FirebaseInitProvider.java:51)
    at android.content.ContentProvider.attachInfo(ContentProvider.java:2411)
    at android.content.ContentProvider.attachInfo(ContentProvider.java:2381)
    at com.google.firebase.provider.FirebaseInitProvider.attachInfo(FirebaseInitProvider.java:45)
    at android.app.ActivityThread.installProvider(ActivityThread.java:7443)
    at android.app.ActivityThread.installContentProviders(ActivityThread.java:6922)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6817)
    at android.app.ActivityThread.access$1400(ActivityThread.java:244)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1951)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loop(Looper.java:236)
    at android.app.ActivityThread.main(ActivityThread.java:7861)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:600)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)
Caused by: java.lang.ClassNotFoundException: com.google.firebase.messaging.FirebaseMessagingRegistrar
    ... 24 more
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:454)
    at java.lang.Class.forName(Class.java:379)
    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>(FirebaseApp.java:419)
    at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:300)
    at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:268)
    at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:253)
    at com.google.firebase.provider.FirebaseInitProvider.onCreate(FirebaseInitProvider.java:51)
    at android.content.ContentProvider.attachInfo(ContentProvider.java:2411)
    at android.content.ContentProvider.attachInfo(ContentProvider.java:2381)
    at com.google.firebase.provider.FirebaseInitProvider.attachInfo(FirebaseInitProvider.java:45)
    at android.app.ActivityThread.installProvider(ActivityThread.java:7443)
    at android.app.ActivityThread.installContentProviders(ActivityThread.java:6922)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6817)
    at android.app.ActivityThread.access$1400(ActivityThread.java:244)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1951)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loop(Looper.java:236)
    at android.app.ActivityThread.main(ActivityThread.java:7861)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:600)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)
Caused by: java.lang.ClassNotFoundException: com.google.firebase.database.DatabaseRegistrar
    ... 24 more
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:454)
    at java.lang.Class.forName(Class.java:379)
    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>(FirebaseApp.java:419)
    at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:300)
    at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:268)
    at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:253)
    at com.google.firebase.provider.FirebaseInitProvider.onCreate(FirebaseInitProvider.java:51)
    at android.content.ContentProvider.attachInfo(ContentProvider.java:2411)
    at android.content.ContentProvider.attachInfo(ContentProvider.java:2381)
    at com.google.firebase.provider.FirebaseInitProvider.attachInfo(FirebaseInitProvider.java:45)
    at android.app.ActivityThread.installProvider(ActivityThread.java:7443)
    at android.app.ActivityThread.installContentProviders(ActivityThread.java:6922)
    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6817)
    at android.app.ActivityThread.access$1400(ActivityThread.java:244)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1951)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loop(Looper.java:236)
    at android.app.ActivityThread.main(ActivityThread.java:7861)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:600)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)
Caused by: java.lang.ClassNotFoundException: com.google.firebase.storage.StorageRegistrar
    ... 24 more
Device unlocked: initializing all Firebase APIs for app [DEFAULT]
Initializing Crashlytics 17.2.2
Considering local module com.google.android.gms.measurement.dynamite:51 and remote module com.google.android.gms.measurement.dynamite:50
Selected local version of com.google.android.gms.measurement.dynamite
FirebaseApp initialization successful
common created.
RegisterTcmMonitor from: $Proxy1
Starting remote logger. Port: 43648
test.app initForcedUseForceDark: 1
App measurement initialized, version: 42004
To enable debug logging run: adb shell setprop log.tag.FA VERBOSE
To enable faster debug mode event logging run:
  adb shell setprop debug.firebase.analytics.app test.app
*** Service (starter) Create ***
** Service (starter) Start **
Tag Manager is not found and thus will not be used
QUALCOMM build                   : 559e78c, Ib9d997268a
Build Date                       : 10/13/20
OpenGL ES Shader Compiler Version: EV031.32.02.02
Local Branch                     :
Remote Branch                    :
Remote Branch                    :
Reconstruct Branch               :
Build Config                     : S P 10.0.7 AArch64
Driver Path                      : /vendor/lib64/egl/libGLESv2_adreno.so
PFP: 0x016ee190, ME: 0x00000000
** Activity (main) Create, isFirst = true **
** Activity (main) Resume **
DequeueBuffer time out on test.app/test.app.main, count=1, avg=16 ms, max=16 ms.
After accept
ProcessProfilingInfo new_methods=3740 is saved saved_to_disk=1 resolve_classes_delay=8000
main_button1_click (java line: 368)
java.lang.NumberFormatException: For input string: "aaa"
    at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2043)
    at sun.misc.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
    at java.lang.Double.parseDouble(Double.java:538)
    at test.app.main._button1_click(main.java:368)
    at java.lang.reflect.Method.invoke(Native Method)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:213)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:197)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
    at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
    at android.view.View.performClick(View.java:7559)
    at android.view.View.performClickInternal(View.java:7536)
    at android.view.View.access$3600(View.java:828)
    at android.view.View$PerformClick.run(View.java:28690)
    at android.os.Handler.handleCallback(Handler.java:938)
    at android.os.Handler.dispatchMessage(Handler.java:99)
    at android.os.Looper.loop(Looper.java:236)
    at android.app.ActivityThread.main(ActivityThread.java:7861)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:600)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:967)
--------- beginning of crash
FATAL EXCEPTION: pool-7-thread-1
Process: test.app, PID: 16626
java.lang.NoSuchMethodError: No static method of(Ljava/lang/String;)Lcom/google/firebase/encoders/FieldDescriptor; in class Lcom/google/firebase/encoders/FieldDescriptor; or its super classes (declaration of 'com.google.firebase.encoders.FieldDescriptor' appears in /data/app/~~W5kVDc44eqPjMV5Jk38sKQ==/test.app-hC4p4r5i7gG0vYT_MUDVpA==/base.apk)
    at com.google.android.datatransport.cct.internal.AutoBatchedLogRequestEncoder$BatchedLogRequestEncoder.<clinit>(AutoBatchedLogRequestEncoder.java:38)
    at com.google.android.datatransport.cct.internal.AutoBatchedLogRequestEncoder.configure(AutoBatchedLogRequestEncoder.java:21)
    at com.google.firebase.encoders.json.JsonDataEncoderBuilder.configureWith(JsonDataEncoderBuilder.java:103)
    at com.google.android.datatransport.cct.internal.BatchedLogRequest.createDataEncoder(BatchedLogRequest.java:39)
    at com.google.android.datatransport.cct.CctTransportBackend.<init>(CctTransportBackend.java:100)
    at com.google.android.datatransport.cct.CctTransportBackend.<init>(CctTransportBackend.java:129)
    at com.google.android.datatransport.cct.CctBackendFactory.create(CctBackendFactory.java:29)
    at com.google.android.datatransport.runtime.backends.MetadataBackendRegistry.get(MetadataBackendRegistry.java:80)
    at com.google.android.datatransport.runtime.scheduling.DefaultScheduler.lambda$schedule$1(DefaultScheduler.java:70)
    at com.google.android.datatransport.runtime.scheduling.DefaultScheduler$$Lambda$1.run(Unknown Source:8)
    at com.google.android.datatransport.runtime.SafeLoggingExecutor$SafeLoggingRunnable.run(SafeLoggingExecutor.java:47)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
    at java.lang.Thread.run(Thread.java:923)
java.lang.NoSuchMethodError: No static method of(Ljava/lang/String;)Lcom/google/firebase/encoders/FieldDescriptor; in class Lcom/google/firebase/encoders/FieldDescriptor; or its super classes (declaration of 'com.google.firebase.encoders.FieldDescriptor' appears in /data/app/~~W5kVDc44eqPjMV5Jk38sKQ==/test.app-hC4p4r5i7gG0vYT_MUDVpA==/base.apk)
    at com.google.android.datatransport.cct.internal.AutoBatchedLogRequestEncoder$BatchedLogRequestEncoder.<clinit>(AutoBatchedLogRequestEncoder.java:38)
    at com.google.android.datatransport.cct.internal.AutoBatchedLogRequestEncoder.configure(AutoBatchedLogRequestEncoder.java:21)
    at com.google.firebase.encoders.json.JsonDataEncoderBuilder.configureWith(JsonDataEncoderBuilder.java:103)
    at com.google.android.datatransport.cct.internal.BatchedLogRequest.createDataEncoder(BatchedLogRequest.java:39)
    at com.google.android.datatransport.cct.CctTransportBackend.<init>(CctTransportBackend.java:100)
    at com.google.android.datatransport.cct.CctTransportBackend.<init>(CctTransportBackend.java:129)
    at com.google.android.datatransport.cct.CctBackendFactory.create(CctBackendFactory.java:29)
    at com.google.android.datatransport.runtime.backends.MetadataBackendRegistry.get(MetadataBackendRegistry.java:80)
    at com.google.android.datatransport.runtime.scheduling.DefaultScheduler.lambda$schedule$1(DefaultScheduler.java:70)
    at com.google.android.datatransport.runtime.scheduling.DefaultScheduler$$Lambda$1.run(Unknown Source:8)
    at com.google.android.datatransport.runtime.SafeLoggingExecutor$SafeLoggingRunnable.run(SafeLoggingExecutor.java:47)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
    at java.lang.Thread.run(Thread.java:923)
Long monitor contention with owner main (16626) at void com.google.firebase.crashlytics.internal.common.CrashlyticsController.handleUncaughtException(com.google.firebase.crashlytics.internal.settings.SettingsDataProvider, java.lang.Thread, java.lang.Throwable)(CrashlyticsController.java:457) waiters=0 in void com.google.firebase.crashlytics.internal.common.CrashlyticsController.handleUncaughtException(com.google.firebase.crashlytics.internal.settings.SettingsDataProvider, java.lang.Thread, java.lang.Throwable) for 3.679s

Datatransport.PNG
Encoder.PNG


Below is a link to download a small project with the problem: Download Small Sample Project

Thanks for any help.
 
Top