Open
Description
json-schema-validator ships two files named "draftv3/schema" and "draftv4/schema". The same two files are provided by json-schema-core which is a compile dependency of json-schema-validator.
When building on Android this is really problematic, because duplicated files cause errors.
:someapp:packageDebugError: duplicate files during packaging of APK C:\someapp\build\outputs\apk\someapp-debug-unaligned.apk
Path in archive: draftv4/schema
Origin 1: C:\.gradle\caches\modules-2\files-2.1\com.github.fge\json-schema-validator\2.2.5\6920bf9735d66f1da4493be0eae75cf855d0e56b\json-schema-validator-2.2.5.jar
Origin 2: C:\.gradle\caches\modules-2\files-2.1\com.github.fge\json-schema-core\1.2.4\579a8cd806ab23e0593e4c9bae4df30c99a6da23\json-schema-core-1.2.4.jar
You can ignore those files in your build.gradle:
android {
packagingOptions {
exclude 'draftv4/schema'
}
}
I think it would be best to remove the copies from json-schema-validator and solely rely on json-schema-core providing them.