Why is Fabric not initialized? java.lang.IllegalStateException: Must Initialize Fabric before using singleton()

后端 未结 8 607
误落风尘
误落风尘 2021-02-06 22:26

I set up Firebase Crashlytics according to Get started with Firebase Crashlytics for my Android app (using Android studio 3.1.3). On my own device as well as on the Emulator, ev

相关标签:
8条回答
  • 2021-02-06 23:06

    I get this exception when migrated from Fabric to FirebaseCrashlytics. I didn't remove

      // Remove the Fabric Crashlytics SDK.
      implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'
    

    And I did not update code:

    Crachlytics.log(..
    

    Should became

    FirebaseCrashlytics.getInstance().log(...
    

    Actually just follow everything in this document Upgrade to the Firebase Crashlytics SDK

    0 讨论(0)
  • 2021-02-06 23:06

    To anyone who is working with NDK and has the same issue. Before completing this step from the official documentation // Add the Crashlytics NDK dependency (if you have the // Firebase Crashlytics dependency, replace it). initialize it using original dependency.

    0 讨论(0)
提交回复
热议问题