Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android - Firebase Crashlytics - "Failed to retrieve settings"

I have troubles making Firebase crash reporting send logs to firebase (Can't see any crashes in firebase console)

I found that previously I've created project in Fabric Crashlytics and removed it today

As far as I know I have configured my android project properly. So maybe I'm just missing something in firebase console. Code is successfully compiled and Fabric.isInitialized() == true

project -> build.gradle

   classpath 'com.google.gms:google-services:4.2.0'
   classpath 'io.fabric.tools:gradle:1.28.1'

app -> build.gradle

implementation 'com.google.firebase:firebase-core:16.0.8'
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.9'

apply plugin: 'com.google.gms.google-services'

No <meta-data> in manifest and no Fabric.with in Application. So clear configuration. Project itself is however pretty huge.

After invoking crash using Crashlytics.getInstance().crash() this is output in console using adb logcat -s Fabric CrashlyticsCore

I CrashlyticsCore: Initializing Crashlytics 2.6.8.32
E Fabric  : Failed to retrieve settings from https://settings.crashlytics.com/spi/v2/platforms/android/apps/*******/settings
W CrashlyticsCore: Received null settings, skipping report submission!

So main problem is probably I'm not receiving settings and have no idea what that means

like image 803
VizGhar Avatar asked Mar 21 '19 10:03

VizGhar


People also ask

What is Firebase settings Crashlytics com?

Firebase Crashlytics is a lightweight, realtime crash reporter that helps you track, prioritize, and fix stability issues that erode your app quality. Crashlytics saves you troubleshooting time by intelligently grouping crashes and highlighting the circumstances that lead up to them.

How do I find out crashes in Firebase Crashlytics?

Open your app from the home screen of your test device or simulator. In your app, press the "Test Crash" button that you added using the code above. After your app crashes, run it again from Xcode so that your app can send the crash report to Firebase.


2 Answers

This is dumb but someone may have the same issue:

I had a proxy running while I was debugging, so the emulator couldn't reach the Firebase servers.

Configuring the proxy/emulator correctly fixed the problem

like image 167
htafoya Avatar answered Oct 20 '22 13:10

htafoya


I just want to add this in case someone has this issu. I was getting the Failed to retrieve settings .... error despite Dashboard working. Turns out you have to enable Crashlytics. I had another app on the same project so it wasn't showing me the enable button until I switched to that app.

like image 30
casolorz Avatar answered Oct 20 '22 12:10

casolorz