Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fabric Crashlytics reports display some letters instead of classes names of my Android App

In Fabric Crashlytics reports I see some letters instead of classes names. for example when I see "MainActivity" I understand that a crash occured in MainActivity.java, but now I see letter "a" , "e" or "w" instead of class name and I can't understand in which class that crash occured!

picture of my crashlytics reports

How can I solve this problem?

like image 580
Alireza Noorali Avatar asked Nov 22 '17 09:11

Alireza Noorali


People also ask

How do I use fabric Crashlytics on Android?

Kits can be installed using the Fabric IDE plugin for Android Studio or IntelliJ following this link. After installing the plugin, restart Android Studio and login with your account using Android Studio. Then it will show the projects that you have / the project you opened, select the one you need and click next ..

Is Crashlytics deprecated?

Old versions of your app still using the Fabric Crashlytics SDK will not break once it's deprecated, however they will no longer submit crash reports. But it seems like it will just continue to work as per normal after this date until further notice. Just leave it the way it is.

How does Firebase Crashlytics work android?

Firebase Crashlytics is a lightweight, realtime crash reporter that helps you track, prioritize, and fix stability issues that erode your app quality. Crashlytics saves you troubleshooting time by intelligently grouping crashes and highlighting the circumstances that lead up to them.

How do I access Crashlytics logs?

Crashlytics associates the logs with your crash data and displays them in the Crashlytics page of the Firebase console, under the Logs tab.


1 Answers

Possibly you're using proguard or dexguard to obfuscate your code, hence when crashlytics reports it, it reports it with symbols instead of actual method and class names.

  1. if you wish to use proguard with crashlytics, follow this doc here to add the necessary proguard rules or simple exclude proguard on crashlytics by adding the following to your proguard-rules file:

    -keep class com.crashlytics.** { *; }
    -dontwarn com.crashlytics.**
    

would recommend adding all the rules mentioned there for better stability.

  1. if you do not know what proguard is or wish not to use it, go to your build.gradle file for app and change the line to:

    minifyEnabled false
    

Happy coding!

like image 94
MadScientist Avatar answered Oct 26 '22 13:10

MadScientist