Home » Android » android – Release build crashlytics is not sending line number in crashreport?

android – Release build crashlytics is not sending line number in crashreport?

Posted by: admin June 15, 2020 Leave a comment

Questions:

While debug mode development I am getting proper line number of crash while in release build I am getting crash file name but with unknown source.

I have included
-keep class com.crashlytics.** { *; }
-keep class com.crashlytics.android.**

I have added above lines in ProGuard.

How to&Answers:

Try following lines, in addition to your ProGuard rules:

# Preserve annotations, line numbers, and source file names
-keepattributes *Annotation*,SourceFile,LineNumberTable