我尝试使用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'
}
如何解决?
答案 0 :(得分:1)
问题来自ftpserver-core依赖。 我不得不在gradle中从ftpserver-core依赖项中排除ftplet-api模块,因为fplet-api被添加了两次。