quickstart-android: How to get crashlytics stacktraces deobfuscated
Step 1: Describe your environment
- Android device: Any
- Android OS version: Any
- Google Play Services version: 4.2.0
- Firebase/Play Services SDK version: 17.0.0
Step 2: Describe the problem:
Ever since Google introduced R8 I’m not getting my crashes stacktraces in crashlytics deobfuscated. I used to get them before, but not anymore, have the configuration described in this page. What should I do to get my crashlytics crashes report deobfuscated, the Stack Traces from Google Play are deobfuscated.
Relevant Code:
proguard-rules.pro
-keepattributes *Annotation*
-keepattributes SourceFile,LineNumberTable
-keep public class * extends java.lang.Exception
-keep class com.crashlytics.** { *; }
-dontwarn com.crashlytics.**
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 6
- Comments: 23 (4 by maintainers)
Same problem.
We were struggling with this issue as well - thought bumping to 1.30+ would be the solution (per https://github.com/firebase/firebase-android-sdk/issues/745). What we ended up finding was that we were losing the deobfuscation only when distributing the apk through Firebase, and only when doing so via the appDistributionUploadRelease gradle command. (Manual APK uploads to Firebase were fine). In our case, we were running
./gradlew appDistributionUploadRelease
after running./gradlew assembleRelease
both on their own. We realized the appDistributionUploadRelease task didn’t call crashlyticsUploadDeobsRelease, and thus realized we should have been calling./gradlew assembleRelease appDistributionUploadRelease
as a single command. (As the docs state, sheesh!) Hopefully that will help someone some headache in the future (or help y’all potentially repro the issue 😃 )I get the same problem with
io.fabric.tools:gradle:1.31.2
. Logs show thatDeobfuscation file(s) uploaded
, but stack traces in Crashlytics are obfuscated, for exampleb.a.a.a.s0.m.j1.l
.@GuanacoDevs had the same issue after updating to ‘io.fabric.tools:gradle:1.31.0’ crash reports are deobfuscated properly
I couldn’t find the file crashlytics.log anywhere on my computer
same problem
Updating to
io.fabric.tools:gradle:1.31.0
did not work, still can’t get the stack traces deobfuscated, this is really painful. What am I missing here?