Crashlytics not uploading mapping file

£可爱£侵袭症+ 提交于 2019-11-29 18:04:23

Argh. Well there was a simple fix, shame it took me so long to find it. I always (until now) build and locally install a release build using ./gradlew iR (shortcut for ./gradlew installRelease). I tried (after an embarrassingly long time) building from Android Studio instead (Build > Generate Signed Bundle / Apk). As soon as I did that it worked.

I'll update here if and when I figure out non-AS based releasing works with Crashlytics. Meanwhile if you're having problems take a look at the sample https://github.com/firebase/quickstart-android/tree/master/crash. You can take that, drop in your own google-services.json and release as above, then check crashlytics.log (see above) .

Have you read here: https://docs.fabric.io/android/crashlytics/dex-and-proguard.html ?

I'm using those lines in my proguard-rules.pro file (inside your app folder) to get de-obfuscated crash reports

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

And be sure to not have this line in your proguard file

-printmapping mapping.txt
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!