I have a problem including the instabug library in a confusing project (all other third-party libraries are fine).
The error I get is the following (I know there was another question about this error message, but my problem only appears with instabug and none of the suggested solutions work for it).
Error: execution completed for task ': app: packageRelease'.
Cannot calculate hash from C: \ Projects \ ProguardExample \ app \ build \ intermediates \ classes-proguard \ release \ classes.jar
While trying to solve the problem, I added some instructions to the configuration file.
-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.** { *; }
// here I also tried changing proguard-project.txt
and my 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
This is what my build.gradle looks like.
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:0.1.0@aar'
compile 'com.instabug.library:instabugsupport:1+'
// compile 'org.apache.commons:commons-collections4:4.0'
}
, . , , , , :)