Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate META-INF/DEPENDENCIES in Android #98

Open
meavydev opened this issue Jan 31, 2022 · 0 comments
Open

Duplicate META-INF/DEPENDENCIES in Android #98

meavydev opened this issue Jan 31, 2022 · 0 comments

Comments

@meavydev
Copy link

When we add your library from Maven (0.4.23) to our SDK it pulls in both Apache httpclient and httpcore.
This results in a duplicate META-INF/DEPENDENCIES resource:

Caused by: com.android.builder.merge.DuplicateRelativeFileException: 2 files found with path 'META-INF/DEPENDENCIES' from inputs:

+--- com.here.account:here-oauth-client:0.4.23|
+--- org.ini4j:ini4j:0.5.1|
+--- com.fasterxml.jackson.core:jackson-databind:2.10.0.pr1 -> 2.13.0 (*)|
--- org.apache.httpcomponents:httpclient:4.5.2|
+--- org.apache.httpcomponents:httpcore:4.4.4|
+--- commons-logging:commons-logging:1.2|
--- commons-codec:commons-codec:1.9

Which requires any app using our SDK to now have to add a packagingOptions to exclude it:
packagingOptions {
resources.excludes += "META-INF/DEPENDENCIES"
}

We think you should be excluding this duplicate resource as a packagingOptions section in your library build step.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant