【发布时间】:2018-10-22 18:11:32
【问题描述】:
我正在尝试使用 gradle 构建我的项目,但收到以下错误消息:
错误:任务 ':app:transformClassesWithJarMergingForDebug' 执行失败。 com.android.build.api.transform.TransformException:java.util.zip.ZipException:重复条目:org/apache/ftpserver/ftplet/Authentication.class
所以,我认为 Authentication.class 文件不仅仅存在于 ftp 库中,但我不知道如何解决这个错误。
我的 gradle.build 依赖项:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.3.0'
compile 'com.android.support:design:23.3.0'
compile 'com.android.support:support-v4:23.3.0'
compile 'org.apache.ftpserver:ftpserver-core:1.0.6'
compile 'cc.mvdan.accesspoint:library:0.2.0'
}
如何解决?
【问题讨论】:
-
你的lib文件夹里有jar吗?
-
您可以打开Android Studio右侧的Gradle窗口并运行
help>dependencies。否则,更多选项在my post here 中讨论