9

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.

Lokesh Tiwari
  • 10,496
  • 3
  • 36
  • 45

1 Answers1

22

Try following lines, in addition to your ProGuard rules:

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