Crashlytics is logging crashes with the wrong line number

Viewed 262

I've been receiving a number of crash reports from a number of users on different devices, all happening on line 4 of my app:

enter image description here enter image description here enter image description here

But line 4 is just an import:

enter image description here

I'm running Android Studio 3.6.1 on a Linux laptop.

1 Answers

In my case the problem was not in Firebase but in R8 minifying. As pointed here try to add -keepattributes LineNumberTable,SourceFile to your proguard.pro file. It should help.

Related