gpt4 book ai didi

android - 重复的 zip 条目 [commons-io-1.3.2.jar :org/apache/commons/io/CopyUtils. 类])

转载 作者:太空宇宙 更新时间:2023-11-03 11:09:58 30 4
gpt4 key购买 nike

我在使用 minifyEnabled 时收到“Duplicate zip entry error”。

Android Studio 版本:1.0 rc 1
操作系统版本:Mac OS 10.9.5
Java JRE/JDK 版本:“1.7.0_71”
Gradle :0.14.0

这是我的一些 build.gradle 设置。

compileSdkVersion 21
buildToolsVersion "21.1.1"

packagingOptions {
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/notice.txt'
exclude 'META-INF/MANIFEST.MF'
exclude 'META-INF/license.txt'
exclude 'META-INF/dependencies.txt'
}

buildTypes {
release {
minifyEnabled true
//proguardFile file('proguard-project.txt')
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
}
debug {
minifyEnabled true
//proguardFile file('proguard-project.txt')
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-project.txt'
debuggable true
applicationIdSuffix = '.alpha'
versionNameSuffix = 'a'
}
}
dependencies {
compile 'com.android.support:support-v4:21.0.0'
compile 'com.android.support:appcompat-v7:21.0.2'
compile project(':modules:Aviary-SDK')
compile project(':modules:facebook')
compile ('com.crashlytics.android:crashlytics:1.+'){
exclude group: 'commons-io', module: 'commons-io' //added this because crashlytics seems to be using commons-io
}
compile 'com.google.android.gms:play-services:6.1.11'
compile 'org.apache.httpcomponents:httpcore:4.3.2'
compile 'org.apache.httpcomponents:httpmime:4.3.5'
}

我在组装调试时收到此错误消息:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:proguardDebug'.
> java.io.IOException: Can't write [/Users/tomoaki/Workspace/temp/someproject/app/build/intermediates/classes-proguard/debug/classes.jar] (Can't read [/Users/tomoaki/.gradle/caches/modules-2/files-2.1/org.apache.commons/commons-io/1.3.2/b6dde38349ba9bb5e6ea6320531eae969985dae5/commons-io-1.3.2.jar(;;;;;;!META-INF/MANIFEST.MF)] (Duplicate zip entry [commons-io-1.3.2.jar:org/apache/commons/io/CopyUtils.class]))

我读了this question但答案对我不起作用。感谢您的帮助。

最佳答案

因为你在 Aviary 中也发现了它,你可以尝试:

编译(项目(':模块:Aviary-SDK')){排除组:'commons-io',模块:'commons-io'}

这样你就不会得到 DSL 错误。

关于android - 重复的 zip 条目 [commons-io-1.3.2.jar :org/apache/commons/io/CopyUtils. 类]),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27118087/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com