Crashlytics error - This app relies on Crashlytics. Please sign up for access

前端 未结 7 1844
温柔的废话
温柔的废话 2021-01-03 18:05

I have two build flavors in gradle but for some reason whenever i change the following flag to false i get the titled error message:

ext.enableCrashlytics =          


        
7条回答
  •  庸人自扰
    2021-01-03 18:18

    Whenever I set

    ext.enableCrashlytics = false
    

    my app crashes with

    io.fabric.sdk.android.services.concurrency.UnmetDependencyException
    
    This app relies on Crashlytics. Please sign up for access at https://fabric.io/sign_up, install an Android build tool and ask a team member to invite you to this app's organization.
    

    What seems to work for me is that I have to disable automatic initialization of Crashlytics by adding this line to AndroidManifest.xml

    
    

    Then I manually initialize Crashlytics in the onCreate() method of my Application subclass, use BuildConfig.DEBUG to decide whether to disable CrashlyticsCore, and call Fabric.with(). In fact, I no longer set

    ext.enableCrashlytics = false
    

    at all. It all seems to work to me.

提交回复
热议问题