Skip to content

DuplicateFileException: duplicate files copied in APK org/xerces/impl/msg/XMLSerializerMessage.properties #1

@naahac

Description

@naahac

I installed jena-android with local maven repository, as instructed on the main page of this project. I get this error when trying to deploy application:

Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.

com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK org/apache/xerces/impl/msg/XMLSerializerMessages.properties
File1: C:\Users\Natanael.m2\repository\xerces\xercesImpl\2.11.0\xercesImpl-2.11.0.jar
File2: C:\Users\Natanael.m2\repository\mobi\seus\jena\xerces-android\2.11.0\xerces-android-2.11.0.jar

I tried to exclude the file but then I get another DuplicateFileException and after that another... (it seems to go on forever). I also suspect that the files are important and should not be excluded.

How can I resolve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions