Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Beta: Error reading Beta build properties

get this bug on startup of my application, but only on Android Studio 2.2.0. on my machine. Everything is up-to-date and this error occurs only on my machine. App is not crasing, but leaves this stactrace:

E/Beta: Error reading Beta build properties
java.io.FileNotFoundException: crashlytics-build.properties
at android.content.res.AssetManager.openAsset(Native Method)
at android.content.res.AssetManager.open(AssetManager.java:339)
at android.content.res.AssetManager.open(AssetManager.java:313)
at com.crashlytics.android.beta.Beta.loadBuildProperties(Beta.java:172)
at com.crashlytics.android.beta.Beta.doInBackground(Beta.java:75)
at com.crashlytics.android.beta.Beta.doInBackground(Beta.java:30)
at io.fabric.sdk.android.InitializationTask.doInBackground(InitializationTask.java:63)
like image 921
pavle Avatar asked Oct 04 '16 10:10

pavle


2 Answers

I'm pretty sure that's because you have:

ext.enableCrashlytics = false

In your application build.gradle file.

like image 197
Jérémy Avatar answered Oct 16 '22 06:10

Jérémy


You can disable Crashlytics for debug builds when initializing:

    // 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);
like image 36
Jensie Avatar answered Oct 16 '22 07:10

Jensie