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

后端 未结 13 1826
失恋的感觉
失恋的感觉 2020-12-04 17:41

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 flav
13条回答
  •  生来不讨喜
    2020-12-04 18:11

    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);
    }
    

提交回复
热议问题