Check out this solution / hack: fooobar.com/questions/1001274 / ...
Adapted for your error, add this to build.gradle:
import com.android.build.gradle.internal.pipeline.TransformTask def deleteDuplicateJniFiles() { def files = fileTree("/Users/user/src/name/hci/build/libs/") { include "**/jarname.jar" } files.each { it.delete() } } tasks.withType(TransformTask) { pkgTask -> pkgTask.doFirst { deleteDuplicateJniFiles() } }
Note. This command does not actually remove these banks (your duplication error implies that they will be added back) - only the configuration / exception block will do this. I have no idea why they are included, since in my project they were not duplicated when checking gradle dependencies either .:
source share