android - Acra 在发行版中不起作用

标签 android android-gradle-plugin acra

为了报告我的应用程序崩溃,以这种形式通过 Android Studio Gradle Dependencies 使用 Acra 库:

 dependencies {
      compile 'ch.acra:acra:4.6.2'
  }

现在在 Bebug 版本 中,它可以正常工作并返回崩溃报告,但在导出 Release 版本 后,应用程序无法工作并在 logcat 中返回此错误:

Not adding buildConfig to log. Class Not found : " + className + ". Please configure 'buildConfigClass' in your ACRA config 

然后我使用 acra-4-6-2.jar 文件代替 dependencies 但仍然无法工作!

太前看了this link但对我没有帮助。

感谢您的关注

最佳答案

这听起来像是您在发布时对您的应用进行 Proguardng,但尚未将相关的 ACRA 类添加到您的 Proguard 配置中。

参见 https://github.com/ACRA/acra/wiki/ProGuard

关于android - Acra 在发行版中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32156188/

相关文章:

android - 最新的 ACRA(Android 应用程序崩溃报告)没有很好的例子

android - ACRA 未创建报告

android - 刷新恢复镜像后,在 Ubuntu 中不再检测到 Nexus 7

android-gradle-plugin - React-Native Android Build Failure : Execution failed for task ':app:processDebugResources' . 资源处理失败

android - 通过命令行构建 Android Studio 应用

android - Android:编译时出错:我将Exoplayer库从r2.5.3更改为2.9.0

android - 在崩溃报告中指定 logcatArguments 时,Acra 缺少 LOGCAT

android - 如何为我的 ListView 实现适配器以显示 iPhone 联系人列表

android - 手机摄像头是否有可能以不规则的 fps 拍摄视频?

android - 如何在 Android 中创建一个整洁的两列输入表单?