Fix for me from official source
Disable Crashlytics to debug assembly
If you don't need Crashlytics crash reports or beta distributions for debug builds, you can safely speed up your debug builds by completely disabling the plugin with these two steps:
First add this to your build.gradle applications:
android { buildTypes { debug { // Disable fabric build ID generation for debug builds ext.enableCrashlytics = false ...
Then disable the Crashlytics bundle at runtime. Otherwise, the Crashlytics set throws the following error:
com.crashlytics.android.core.CrashlyticsMissingDependencyException: This app relies on Crashlytics. Please sign up for access at https:
You can disable runtime dialing for debug collections only with the following code:
// 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);
Damir Mailybayev Jan 24 '17 at 18:01 2017-01-24 18:01
source share