我使用crashlytics发送我的报告,但崩溃不会像这样解除混淆:
Fatal Exception: c.a
我恳求here并补充道
-keepattributes *Annotation*
-keepattributes SourceFile,LineNumberTable
到我的proguard规则文件,没有
-printmapping mapping.txt
在我的配置文件中 . 这是我的build.gradle buildTypes部分:
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug_server {
minifyEnabled false
debuggable true
matchingFallbacks = ['release']
}
debug {
applicationIdSuffix '.debug'
versionNameSuffix '-DEBUG'
minifyEnabled false
}
}
并非我的所有崩溃都是这样的,我将crashlytics更新为2.9.4版本 .
UPDATE:
我刚跳过这个
-keep class com.crashlytics.** { *; }
-dontwarn com.crashlytics.**
因为我不需要在Crashlytics上跳过运行proguard .