Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: org/apache/commons/io/CopyUtils.class
Es tritt dieser Fehler auf.Fehler: Fehler bei der Ausführung für die Task ‚: java.util.zip.ZipException: doppelte Eintrag: org/Apache/commons/io/CopyUtils.class
Die App baut Erfolg, aber wenn ich bauen bekommen apk, zeigen android Studio Diese Nachricht
Das ist mein gradle ist
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion '25'
defaultConfig {
applicationId "com.example.thewell_dev.fourscompany"
minSdkVersion 19
targetSdkVersion 24
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:23.2.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
testCompile 'junit:junit:4.12'
compile 'com.mobsandgeeks:android-saripaar:2.0.3'
compile 'com.koushikdutta.ion:ion:2.1.9'
compile 'gun0912.ted:tedpermission:1.0.2'
compile 'com.android.support:design:22.+'
compile 'com.estimote:sdk:0.13.0'
compile 'jp.wasabeef:glide-transformations:2.0.0'
compile 'com.afollestad:easyvideoplayer:0.3.0'
compile 'com.github.jrvansuita:PickImage:v2.0.0'
compile 'com.amazonaws:aws-android-sdk-s3:2.+'
compile 'com.mindorks:placeholderview:0.6.0'
compile 'com.tsengvn:Typekit:1.0.0'
compile 'com.github.esafirm:RxDownloader:1.0.1'
compile 'com.mlsdev.rximagepicker:library:1.1.2'
compile 'io.reactivex:rxjava:1.0.14'
compile 'com.kbeanie:image-chooser-library:[email protected]'
compile 'com.kbeanie:image-chooser-library:1.5.8'
compile 'io.github.jeancsanchez.photoviewslider:photoviewslider:1.2.0'
compile 'com.nononsenseapps:filepicker:3.1.0'
compile 'com.gjiazhe:scrollparallaximageview:1.0'
compile 'com.droidninja:filepicker:1.0.8'
compile 'com.android.support:multidex:1.0.0'
}
Ich denke, externe Bibliotheken haben Commons-io-1.3.2.jar Commons-io-2.4.jar und beide haben CopyUtils.class
Wie auch immer, es kann nicht apk bauen und zeigen diese Nachricht.
Bitte jemand mir helfen, bitte
Es gibt viele Fragen wie dies auf SO. Bitte zuerst suchen. http://StackOverflow.com/Questions/39957924/Java-Util-Zip-Zipexception-Duplicate-entry/39958129#39958129 Siehe den "EDIT" Abschnitt hier, um den Befehl auszuführen und auszuschließen, was benötigt wird –
Mögliche Duplikate von [Android Gradle compiling commons-io erstellt ein Duplikat im Bibliotheksbaum] (http://stackoverflow.com/questions/35185512/android-gradle-compiling-commons-io-create-duplicate-in-library-tree) – Techierj
@ th3pat3l ja ich denke viele Frage darüber, aber ich kann die Lösung nicht finden, so frage ich und in der Befehlszeile, legte ich ./gradlew app: Abhängigkeiten nicht bestellen in oder aus Nachricht –