android - Release build crashlytics 不在崩溃报告中发送行号?

标签 android crashlytics crashlytics-android

在 Debug模式开发中,我得到了正确的崩溃行号,而在发布版本中,我得到了崩溃文件名,但来源未知。

I have included
-keep class com.crashlytics.** { *; }
-keep class com.crashlytics.android.**

我在 ProGuard 中添加了以上几行。

最佳答案

除了您的 ProGuard 规则外,请尝试以下几行:

# Preserve annotations, line numbers, and source file names
-keepattributes *Annotation*,SourceFile,LineNumberTable

关于android - Release build crashlytics 不在崩溃报告中发送行号?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36119323/

相关文章:

android - 在Android键盘Phonegap应用程序上触发输入事件

android - 如何为编辑 TextView 设置默认高度

android - 在 stripDebugDebugSymbols 步骤中找不到 arm-linux-androideabi 工具链

android - 如果我向 10% 的用户推出更新,并再次更新应用程序,它会再次选择相同的 10% 用户吗?

android - 错误 "Could not create task ' :app:injectCrashlyticsMappingFileIdFlavorXDebug"after upgrading from Fabric to Firebase

android - 使用 kSoap2 在 android 中访问 WebService

ios - Fabric : Issue with post processing on iOS

ios - ld : framework not found Crashlytics

android - 如果生产版本存在 : 'The package conflicts with an existing package by the same name' ,则不会安装适用于 Android 的 Crashlytics Beta 版本

android - Android 对话框的最佳实践 - 如何避免应用程序因关闭对话框而崩溃