Reputation: 3564
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:
But line 4 is just an import:
I'm running Android Studio 3.6.1 on a Linux laptop.
Upvotes: 7
Views: 1170
Reputation: 131
Vít Kapitola's answer is not enough for my problem. In addition;
Add your -keepattributes LineNumberTable,SourceFile
and -renamesourcefileattribute SourceFile
to your proguard.pro
file.
For more information: https://developer.android.com/build/shrink-code#retracing
Upvotes: 0
Reputation: 549
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.
Upvotes: 2