Donnerstag, 22. März 2018

Exception For input string: "com.crashlytics.useFirebaseAppId" (Android)

Exception For input string: "com.crashlytics.useFirebaseAppId"


Sometimes Android development is really time consuming and you keep on looking for issues for a long-time - such as in the following case:

  1. App starts on real device and emulator (phone)
  2. App crashes e.g. on tablet (both physical device and emulator)

In this case you would assume a proper error message, indicating some layout issues.

No.

Instead no error message. When starting in Debug mode, the first exception it stops at is:

Exception For input string: "com.crashlytics.useFirebaseAppId" (Android)

WTF? com.crashlytics.useFirebaseAppId

So it seems like to require (now) some kind of FirebaseApp id which is missing and it uses a String that leads to a crash. 

Unfortunately also adding:

fabric.properties


USE_FIREBASE_APP_ID=false 


strings.xml



<string name="com.crashlytics.useFirebaseAppId">false</string>


has NOT helped.

This refers to:

implementation('com.crashlytics.sdk.android:crashlytics:2.8.0@aar') {
    transitive = true}