I'm trying to build my project with gradle, but I get this error message:
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: org/apache/ftpserver/ftplet/Authentication.class
So, I think the Authentication.class file is present in more than just ftp library, but I don't know how to fiw this error.
My gradle.build dependencies:
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'
}
How to fix it?