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

后端 未结 8 605
误落风尘
误落风尘 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

提交回复
热议问题