Reputation: 240
Please I am trying to generate my apk file and I got this error I dont know what should I exclude on my Gradle file
Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForDebug'.
java.io.IOException: Can't write [C:\Users\Hicham\Documents\DTISoftwares\Grounded\app\build\intermediates\transforms\proguard\debug\jars\3\1f\main.jar] (Can't read [C:\Users\Hicham\Documents\DTISoftwares\Grounded\app\build\intermediates\exploded-aar\com.android.support\support-v4\24.0.0\jars\classes.jar(;;;;;;**.class)] (Duplicate zip entry [android/support/v4/e/d.class == classes.jar:android/support/v4/text/TextUtilsCompat.class]))
Upvotes: 1
Views: 813
Reputation: 103
One/Some of the libraries files you have included already using support-v4 library.So remove line "compile 'com.android.support:...." from the dependencies in your gradle file.
Upvotes: 1
Reputation: 5849
skip the using of proguard. remove the reference of proguard file from build.gradle.
You need to comment following line.
proguardFiles getDefaultProguardFile('your file path'),
Upvotes: -1