Reputation: 340
I have this error
Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.
com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK com/j256/ormlite/core/LICENSE.txt
File1: ../.gradle/caches/modules-2/files-2.1/com.j256.ormlite/ormlite-core/4.48/e579bd2905d0399af5029aaaf9817d5fa0ca88a5/ormlite-core-4.48.jar
File2: ../utils-lib/build/intermediates/bundles/default/classes.jar
File3: ../networking-lib/build/intermediates/bundles/default/classes.jar
Upvotes: 0
Views: 455
Reputation: 2730
Add to build.gradle:
packagingOptions {
exclude '**/LICENSE.txt'
exclude 'pom.xml'
}
But you may exclude only com/j256/ormlite/core/LICENSE.txt
instead all LICENSE.txt
files
Upvotes: 2