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

Android Build Issues #9

Closed
irvine752 opened this issue Mar 26, 2021 · 2 comments
Closed

Android Build Issues #9

irvine752 opened this issue Mar 26, 2021 · 2 comments

Comments

@irvine752
Copy link

Running the latest version, I'm getting conflict errors.

I have also tried:
implementation ('de.sfuhrm:radiobrowser4j:2.0.5'){
exclude module: "jetified-jakarta.inject-2.6.1"
exclude module: "jetified-jakarta.xml.bind-api-2.3.2"
}

packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0'
exclude 'META-INF/NOTICE.md'
exclude 'META-INF/LICENSE.md'
exclude 'META-INF/NOTICE.markdown'
exclude 'META-INF/INDEX.LIST'
exclude("META-INF/*.kotlin_module")
}

Build Log:
Duplicate class javax.inject.Inject found in modules jetified-jakarta.inject-2.6.1 (org.glassfish.hk2.external:jakarta.inject:2.6.1) and jetified-javax.inject-1 (javax.inject:javax.inject:1)
Duplicate class javax.inject.Named found in modules jetified-jakarta.inject-2.6.1 (org.glassfish.hk2.external:jakarta.inject:2.6.1) and jetified-javax.inject-1 (javax.inject:javax.inject:1)
Duplicate class javax.inject.Provider found in modules jetified-jakarta.inject-2.6.1 (org.glassfish.hk2.external:jakarta.inject:2.6.1) and jetified-javax.inject-1 (javax.inject:javax.inject:1)
Duplicate class javax.inject.Qualifier found in modules jetified-jakarta.inject-2.6.1 (org.glassfish.hk2.external:jakarta.inject:2.6.1) and jetified-javax.inject-1 (javax.inject:javax.inject:1)
Duplicate class javax.inject.Scope found in modules jetified-jakarta.inject-2.6.1 (org.glassfish.hk2.external:jakarta.inject:2.6.1) and jetified-javax.inject-1 (javax.inject:javax.inject:1)
Duplicate class javax.inject.Singleton found in modules jetified-jakarta.inject-2.6.1 (org.glassfish.hk2.external:jakarta.inject:2.6.1) and jetified-javax.inject-1 (javax.inject:javax.inject:1)

@sfuhrm
Copy link
Owner

sfuhrm commented Apr 12, 2021

@irvine752 I'm not sure what the output will be, but can you paste the output of

./gradlew app:dependencies

and

./gradlew app:androidDependencies

here? "app" should be the module that has the problem.

Projects dependency tree

The dependency tree of the current master is:

[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ radiobrowser4j ---
[INFO] de.sfuhrm:radiobrowser4j:jar:2.0.6-SNAPSHOT
[INFO] +- org.glassfish.jersey.core:jersey-client:jar:2.33:compile
[INFO] |  +- jakarta.ws.rs:jakarta.ws.rs-api:jar:2.1.6:compile
[INFO] |  +- org.glassfish.jersey.core:jersey-common:jar:2.33:compile
[INFO] |  |  +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile
[INFO] |  |  \- org.glassfish.hk2:osgi-resource-locator:jar:1.0.3:compile
[INFO] |  \- org.glassfish.hk2.external:jakarta.inject:jar:2.6.1:compile
[INFO] +- org.glassfish.jersey.media:jersey-media-json-jackson:jar:2.33:compile
[INFO] |  +- org.glassfish.jersey.ext:jersey-entity-filtering:jar:2.33:compile
[INFO] |  +- com.fasterxml.jackson.core:jackson-annotations:jar:2.11.3:compile
[INFO] |  +- com.fasterxml.jackson.core:jackson-databind:jar:2.11.3:compile
[INFO] |  \- com.fasterxml.jackson.module:jackson-module-jaxb-annotations:jar:2.11.3:compile
[INFO] +- org.glassfish.jersey.inject:jersey-hk2:jar:2.33:compile
[INFO] |  +- org.glassfish.hk2:hk2-locator:jar:2.6.1:compile
[INFO] |  |  +- org.glassfish.hk2.external:aopalliance-repackaged:jar:2.6.1:compile
[INFO] |  |  +- org.glassfish.hk2:hk2-api:jar:2.6.1:compile
[INFO] |  |  \- org.glassfish.hk2:hk2-utils:jar:2.6.1:compile
[INFO] |  \- org.javassist:javassist:jar:3.25.0-GA:compile
[INFO] +- org.glassfish.jaxb:jaxb-runtime:jar:2.3.2:compile
[INFO] |  +- jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.2:compile
[INFO] |  +- org.glassfish.jaxb:txw2:jar:2.3.2:compile
[INFO] |  +- com.sun.istack:istack-commons-runtime:jar:3.0.8:compile
[INFO] |  +- org.jvnet.staxex:stax-ex:jar:1.8.1:compile
[INFO] |  +- com.sun.xml.fastinfoset:FastInfoset:jar:1.2.16:compile
[INFO] |  \- jakarta.activation:jakarta.activation-api:jar:1.2.1:compile
[INFO] +- org.slf4j:slf4j-api:jar:1.7.30:compile
[INFO] +- org.apache.logging.log4j:log4j-slf4j-impl:jar:2.14.0:test
[INFO] |  +- org.apache.logging.log4j:log4j-api:jar:2.14.0:test
[INFO] |  \- org.apache.logging.log4j:log4j-core:jar:2.14.0:test
[INFO] +- org.slf4j:slf4j-ext:jar:1.7.30:compile
[INFO] +- org.projectlombok:lombok:jar:1.18.16:provided
[INFO] +- junit:junit:jar:4.13.1:test
[INFO] |  \- org.hamcrest:hamcrest-core:jar:1.3:test
[INFO] +- org.hamcrest:hamcrest-all:jar:1.3:test
[INFO] +- org.jmockit:jmockit:jar:1.49:test
[INFO] |  \- com.google.code.findbugs:jsr305:jar:3.0.2:test
[INFO] \- com.github.tomakehurst:wiremock:jar:2.27.2:test
[INFO]    +- org.eclipse.jetty:jetty-server:jar:9.2.28.v20190418:test
[INFO]    |  +- javax.servlet:javax.servlet-api:jar:3.1.0:test
[INFO]    |  +- org.eclipse.jetty:jetty-http:jar:9.2.28.v20190418:test
[INFO]    |  \- org.eclipse.jetty:jetty-io:jar:9.2.28.v20190418:test
[INFO]    +- org.eclipse.jetty:jetty-servlet:jar:9.2.28.v20190418:test
[INFO]    |  \- org.eclipse.jetty:jetty-security:jar:9.2.28.v20190418:test
[INFO]    +- org.eclipse.jetty:jetty-servlets:jar:9.2.28.v20190418:test
[INFO]    |  +- org.eclipse.jetty:jetty-continuation:jar:9.2.28.v20190418:test
[INFO]    |  \- org.eclipse.jetty:jetty-util:jar:9.2.28.v20190418:test
[INFO]    +- org.eclipse.jetty:jetty-webapp:jar:9.2.28.v20190418:test
[INFO]    |  \- org.eclipse.jetty:jetty-xml:jar:9.2.28.v20190418:test
[INFO]    +- org.eclipse.jetty:jetty-proxy:jar:9.2.28.v20190418:test
[INFO]    |  \- org.eclipse.jetty:jetty-client:jar:9.2.28.v20190418:test
[INFO]    +- com.google.guava:guava:jar:20.0:test
[INFO]    +- com.fasterxml.jackson.core:jackson-core:jar:2.11.0:compile
[INFO]    +- org.apache.httpcomponents:httpclient:jar:4.5.12:test
[INFO]    |  +- org.apache.httpcomponents:httpcore:jar:4.4.13:test
[INFO]    |  +- commons-logging:commons-logging:jar:1.2:test
[INFO]    |  \- commons-codec:commons-codec:jar:1.11:test
[INFO]    +- org.xmlunit:xmlunit-core:jar:2.7.0:test
[INFO]    |  \- javax.xml.bind:jaxb-api:jar:2.3.0:test
[INFO]    +- org.xmlunit:xmlunit-legacy:jar:2.7.0:test
[INFO]    +- org.xmlunit:xmlunit-placeholders:jar:2.7.0:test
[INFO]    +- com.jayway.jsonpath:json-path:jar:2.4.0:test
[INFO]    |  \- net.minidev:json-smart:jar:2.3:test
[INFO]    |     \- net.minidev:accessors-smart:jar:1.2:test
[INFO]    +- org.ow2.asm:asm:jar:7.0:test
[INFO]    +- net.sf.jopt-simple:jopt-simple:jar:5.0.3:test
[INFO]    +- org.apache.commons:commons-lang3:jar:3.7:test
[INFO]    +- com.github.jknack:handlebars:jar:4.0.7:test
[INFO]    |  \- org.antlr:antlr4-runtime:jar:4.7.1:test
[INFO]    +- com.github.jknack:handlebars-helpers:jar:4.0.7:test
[INFO]    +- com.flipkart.zjsonpatch:zjsonpatch:jar:0.4.4:test
[INFO]    \- commons-fileupload:commons-fileupload:jar:1.4:test
[INFO]       \- commons-io:commons-io:jar:2.2:test
[INFO] 

@sfuhrm
Copy link
Owner

sfuhrm commented Jul 9, 2023

Please check whether the solution in #14 solves your problem. There is a running demo attached to the comment.
Feel free to re-open the issue if not.

@sfuhrm sfuhrm closed this as completed Jul 9, 2023
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

2 participants