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

前端 未结 7 1794
温柔的废话
温柔的废话 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:33

    Todd from Fabric. You will get this error unless you also disable Fabric at run time.

        // Set up Crashlytics, disabled for debug builds
    Crashlytics crashlyticsKit = new Crashlytics.Builder()
        .core(new CrashlyticsCore.Builder().disabled(BuildConfig.DEBUG).build())
        .build();
    
    // Initialize Fabric with the debug-disabled crashlytics.
    Fabric.with(this, crashlyticsKit);
    

    Check out this link for more details: https://docs.fabric.io/android/crashlytics/build-tools.html#disable-crashlytics-for-debug-builds

提交回复
热议问题