为了报告我的应用程序崩溃,以这种形式通过 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 配置中。
关于android - Acra 在发行版中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32156188/