android – Fail to retrieve settings from crashlytics-ThrowExceptions

Exception or error:

I’m having some trouble with Crashlytics and Fabric,
Here’s my log from logcat

I/Fabric(5255): Initializing Crashlytics 2.1.0.21
E/Fabric(5255): Failed to retrieve settings from https://settings.crashlytics.com/spi/v2/platforms/android/apps/com.myapp.application/settings
E/Fabric(5255): Error performing auto configuration.

I’m lost here, Not sure what i’m supposed to do, the crashlytics docs are very poor and don’t help at all. Can someone help me?
I’ve already setted my project with their IDE plugins.

How to solve:

If there’s network connectivity (like in Airplane mode), you will get this error even if everything is setup correctly.

You will also get:

E/Fabricīš• Failed to retrieve settings from https://settings.crashlytics.com/spi/v2/platforms/android/apps/com.xyz/settings
W/Fabricīš• Received null settings, skipping initialization!

To prevent Crashlytics from further crashing when logging, I do this:

boolean fabricInitialized = Fabric.isInitialized();
if (fabricInitialized) {
   Crashlytics.log(someString);
}

###

You probably forgot to add:

<meta-data
            android:name="io.fabric.ApiKey"
            android:value="h4132h4k324hjh4l4324h24hk21h4kj2h4" />

To your Manifest file. At least in my case, that was the reason.

###

After checking internet connection, I solved this issue by activate Crashlytics for my app in the Firebase console (then, relaunch app and all should work fine)

enter image description here

Leave a Reply

Your email address will not be published. Required fields are marked *