I am trying to create and maintain an old application to work, but I cannot go through the build phase. In my app/build.gradle , I have
dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.apache.commons:commons-io:1.3.2'
but when trying to execute the following error:
Error: execution completed for task ': myApp'. com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: org / apache / commons / io / CopyUtils.class
This is almost certainly because when I compile this jar at the top of my external library tree, this is generated:

Why is this happening, and how can I make it stop in order to complete the assembly?
source share