我有一個問題,包括一個混淆項目中的instabug庫(所有其他第三方庫都可以)。Instabug Proguard問題
我得到的錯誤是(我知道有關於此錯誤消息的其他問題,但我的問題只出現在instabug中,並且沒有提出的解決方案適用於它)。
Error:Execution failed for task ':app:packageRelease'.
Unable to compute hash of C:\Projects\ProguardExample\app\build\intermediates\classes-proguard\release\classes.jar
在試圖解決問題時,我在配置文件中添加了一些語句。
-dontwarn android.support.**
-keep class android.support.v7.** { *; }
-keep interface android.support.v7.** { *; }
-keep class com.google.android.gms.** { *; }
-dontwarn com.google.android.gms.**
-keep class com.instabug.** { *; }
//這裏我想也改變proguard的-project.txt
和我proguard-rules.pro
-dontwarn java.nio.file.Files
-dontwarn java.nio.file.Path
-dontwarn java.nio.file.OpenOption
-dontwarn org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
這裏是我的build.gradle的樣子。
buildTypes {
release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig signingConfigs.config
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
compile 'com.android.support:appcompat-v7:23.0.1'
//compile 'com.github.danieltwagner:android-async-logger:[email protected]'
compile 'com.instabug.library:instabugsupport:1+'
// compile 'org.apache.commons:commons-collections4:4.0'
}
如果你能指導我解決這個問題,我將非常感激。即使你不知道它的解決方案,但懷疑在哪個領域,我應該研究以找到它,請與我分享:)