Skip to content

Duplicate files copied in APK on gradle #579

Open

Description

@Son-kun

For versions RC3 and RC4 when I try co build project (android) I have error because project import org.bridj lib and contains files from that lib itself in jar.
Gradle don't want to build project with error:

Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.
com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK org/bridj/Init.c
File1: ....gradle\caches\modules-2\files-2.1\com.nativelibs4java\javacl\1.0.0-RC4\3dd897f9fc9e85e21dad24b33b48f70f1a65a94a\javacl-1.0.0-RC4.jar
File2: ....gradle\caches\modules-2\files-2.1\com.nativelibs4java\bridj\0.7.0\461c40ed578c92106579e370838ed4e224d0289e\bridj-0.7.0.jar

Can you help me with any workaround?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions