Search code examples
androidfirebasecrashlyticsgoogle-fabric

Failed to retrieve settings from https://settings.crashlytics.com/spi/v2/platforms/android/apps/


I am trying out the new Firebase/Crashlytics setup and seem to run into a weird issue.

  • I have one Android code base with multiple product flavors and each flavor is a separate individual app.
  • all of these apps are registered in Fabric (from the past)
  • all of these apps are added in Firebase
  • All linking between the two seems ok (from Fabric side as well as from Firebase side, it says that it is all linked up)
  • I removed the Fabric API key from the manifest file and added the appropriate plugins/dependencies etc. to both gradle files

I try to send a test crash report as per Firebase instructions.

  1. I receive it perfectly fine on one of the product flavors, so I assume all works well. However,
  2. the rest of the product flavors do not send the crash report and I get this error in log:

E/Fabric: Failed to retrieve settings from https://settings.crashlytics.com/spi/v2/platforms/android/apps/package name/settings


Solution

  • Ok, I think I solved the problem, but the solution does not seem to be the way it should work (at least I do not think).

    • Go to Firebase Console > Project Settings > Account Linking > Fabric > Select the app and Unlink it
    • Confim in Fabric > App > Firebase - that it is unlinked
    • Go to Firebase > Project > Crashlytics (select the app you want) and you should now get a dialog to link your app again
    • Choose to link as a New Crashlytics (not existing one) and follow the directions
    • After that all should work fine

    So basically, from Fabric>Firebase screen - there is no link visible and from Firebase>Account Linking>Fabric screen - there is also no linking visible. So no linking, but your crashes will be visible in Firebase.