We have added crashlytics 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
Implementation path. Start by adding Firebase to your app in the Firebase console. Add the Crashlytics SDK via CocoaPods, Gradle, or Pub, and Crashlytics starts collecting reports. Visit the Firebase console to track, prioritize, and fix issues in your app.
Firebase Crashlytics helps By Automatically collecting, Analyzing, and Organizing Crash Reports so that we can prioritise Important Issues firstly Keeping our Users happy.
Crashlytics helps collecting, analyzing and organizing app crash reports.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With