Firebase Crashlytics crash reports are not de-obfuscated after publishing app as a app bundle

做~自己de王妃 提交于 2021-02-19 08:43:05

问题


I recently publish my app to play store as a app bundle and everything is working fine except for above mentioned issue. I have added bellow pro-guard rules in my app and it was working fine with my old builds.

#CrashLitics
-keepattributes SourceFile,LineNumberTable
-keep public class * extends java.lang.Exception

Is there any addition pro-guard rules to include when publishing as a app bundle?


回答1:


I contacted the Firebase team. Their reply was to add :app:crashlyticsUploadDeobsRelease (or whichever build flavor you are using) to your gradle arguments. It worked for me.




回答2:


We had a similar issue. With release build from Android Studio, we were getting de-obfuscated crash logs but with CI it was not working. While observing build logs we realized that Task :app:uploadCrashlyticsMappingFileRelease was never called while generating builds from CI. So we updated our build command like this

./gradlew clean :app:bundleRelease :app:uploadCrashlyticsMappingFileRelease

And then everything worked as expected.



来源:https://stackoverflow.com/questions/53699547/firebase-crashlytics-crash-reports-are-not-de-obfuscated-after-publishing-app-as

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