Android Question Crashlytics error

fishwolf

Well-Known Member
Licensed User
Longtime User
I have a project that already implemented firebase for admob and messages

i have follow the istruction for add crashlytics

1) Add Jar in main
2) Add Macro in manifest
3) Add library firebase crashlutics from SDK manager

when run the app crash immediately

B4X:
09-30 09:25:08.159 14516 14516 I FirebaseCrashlytics: Initializing Crashlytics 17.2.1
09-30 09:25:08.170 14516 14516 D AndroidRuntime: Shutting down VM
09-30 09:25:08.170 14516 14516 E AndroidRuntime: FATAL EXCEPTION: main
09-30 09:25:08.170 14516 14516 E AndroidRuntime: Process: MY-APP, PID: 14516
09-30 09:25:08.170 14516 14516 E AndroidRuntime: java.lang.NoSuchMethodError: No virtual method ignoreNullValues(Z)Lcom/google/firebase/encoders/json/JsonDataEncoderBuilder; in class Lcom/google/firebase/encoders/json/JsonDataEncoderBuilder; or its super classes (declaration of 'com.google.firebase.encoders.json.JsonDataEncoderBuilder' appears in /data/app/MY-APP-1/base.apk)
09-30 09:25:08.170 14516 14516 E AndroidRuntime:     at com.google.firebase.crashlytics.internal.model.serialization.CrashlyticsReportJsonTransform.<clinit>(CrashlyticsReportJsonTransform.java:37)
09-30 09:25:08.170 14516 14516 E AndroidRuntime:     at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.<clinit>(CrashlyticsReportPersistence.java:70)
09-30 09:25:08.170 14516 14516 E AndroidRuntime:     at com.google.firebase.crashlytics.internal.common.SessionReportingCoordinator.create(SessionReportingCoordinator.java:63)
09-30 09:25:08.170 14516 14516 E AndroidRuntime:     at com.google.firebase.crashlytics.internal.common.CrashlyticsController.<init>(CrashlyticsController.java:331)
09-30 09:25:08.170 14516 14516 E AndroidRuntime:     at com.google.firebase.crashlytics.internal.common.CrashlyticsCore.onPreExecute(CrashlyticsCore.java:142)
09-30 09:25:08.170 14516 14516 E AndroidRuntime:     at com.google.firebase.crashlytics.FirebaseCrashlytics.init(FirebaseCrashlytics.java:165)
09-30 09:25:08.170 14516 14516 E AndroidRuntime:     at com.google.firebase.crashlytics.CrashlyticsRegistrar.buildCrashlytics(CrashlyticsRegistrar.java:54)
09-30 09:25:08.170 14516 14516 E AndroidRuntime:     at com.google.firebase.crashlytics.CrashlyticsRegistrar.access$lambda$0(CrashlyticsRegistrar.java)
09-30 09:25:08.170 14516 14516 E AndroidRuntime:     at com.google.firebase.crashlytics.CrashlyticsRegistrar$$Lambda$1.create(CrashlyticsRegistrar.java)
09-30 09:25:08.170 14516 14516 E AndroidRuntime:     at com.google.firebase.components.ComponentRuntime.lambda$new$0(com.google.firebase:firebase-components@@16.0.0:69)
09-30 09:25:08.170 14516 14516 E AndroidRuntime:     at com.google.firebase.components.ComponentRuntime$$Lambda$1.get(com.google.firebase:firebase-components@@16.0.0)
09-30 09:25:08.170 14516 14516 E AndroidRuntime:     at com.google.firebase.components.Lazy.get(com.google.firebase:firebase-components@@16.0.0:53)
09-30 09:25:08.170 14516 14516 E AndroidRuntime:     at com.google.firebase.components.ComponentRuntime.initializeEagerComponents(com.google.firebase:firebase-components@@16.0.0:158)
09-30 09:25:08.170 14516 14516 E AndroidRuntime:     at com.google.firebase.FirebaseApp.initializeAllApis(com.google.firebase:firebase-common@@19.3.0:563)
09-30 09:25:08.170 14516 14516 E AndroidRuntime:     at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@19.3.0:304)
09-30 09:25:08.170 14516 14516 E AndroidRuntime:     at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@19.3.0:268)
09-30 09:25:08.170 14516 14516 E AndroidRuntime:     at com.google.firebase.FirebaseApp.initializeApp(com.google.firebase:firebase-common@@19.3.0:253)
 

fishwolf

Well-Known Member
Licensed User
Longtime User
I have wait some days after the simulate error.
Info firebase console i had enabled the crashlytics, but the Page Is in waiting with this message
 

Attachments

  • IMG_20201003_053156.jpg
    IMG_20201003_053156.jpg
    327.7 KB · Views: 292
Upvote 0

fishwolf

Well-Known Member
Licensed User
Longtime User
Its OK to use free packages.
Are you using correct google-services.json file?
maybe yes, i have downloaded today from firebase console for demo project.
for main project i use the messagging and advertising with success.
 
Upvote 0

Pendrush

Well-Known Member
Licensed User
Longtime User
I'm run out of any more solutions as implementation is really simple.
In my case Crashlytics work as it should.
 
Upvote 0

fishwolf

Well-Known Member
Licensed User
Longtime User
Try to create a new firebase project and create an app with a different package name (as a test).
Done, the page is in waiting when create the android project, but a refresh bypass the problem
the enable of crashytics is always in waiting also after a simulate error, refresh doesn't resolve the problem
 
Upvote 0
Top