Crash walk

We have added in our android, and we use proguard . So, as the crashlytics documentation crashlytics , we added the following code to 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?

Thank you in advance

+5
source share
1 answer

Try these ProGuard rules.

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

And make sure that in place.

+3
source

Source: https://habr.com/ru/post/1240463/


All Articles