6

We have added in our android application, and we are using proguard. So, as the crashlytics documentation says, we have added the following code in our proguard configuration file:

-keep class com.crashlytics.** { *; }
-keep class com.crashlytics.android.**
-keepattributes SourceFile,LineNumberTable *Annotation*

Unfortunately, when we sign the APK, we get the following error:

java.io.IOException: proguard.ParseException: Unknown option '*Annotation*' 

What are we doing wrong?

Thanks in advance

Let'sRefactor
  • 3,303
  • 4
  • 27
  • 43
FVod
  • 2,245
  • 5
  • 25
  • 52

1 Answers1

4

Try This ProGuard rules

# Crashlytics
-keep class com.crashlytics.** { *; }
-dontwarn com.crashlytics.**
-keepattributes SourceFile,LineNumberTable,*Annotation*
-keep class com.crashlytics.android.**

And please make sure that ,s are in place.

Let'sRefactor
  • 3,303
  • 4
  • 27
  • 43
  • 2
    Thank you very much, it seems that there's an error in crashlytics's documentation, and a comma was missing. Adding ',' solved my error. Thank you very much! – FVod Jan 13 '16 at 07:42