Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Proguard with Crashlytics

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

like image 378
FVod Avatar asked Jan 12 '16 18:01

FVod


People also ask

How do you integrate Crashlytics?

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.

Why Crashlytics is integrated with 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.

What is settings Crashlytics?

Crashlytics helps collecting, analyzing and organizing app crash reports.


1 Answers

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.

like image 150
Let'sRefactor Avatar answered Sep 28 '22 06:09

Let'sRefactor