This dependency gives me two versions of one jar. How do I fix this?
问题 I'm using Gradle for my project. One of the dependencies I have specified in my build.gradle is compile 'org.glassfish.jersey.media:jersey-media-moxy:2.0' This works fine on a normal Java application, however when I try to build it on Android I get: When looking at which libraries are referenced, it's clear that there's both javax.inject-2.3.0-b05.jar and javax.inject-1.jar , which I found are added by the dependency above. I'm guessing that this 'duplicate' jar is what causes the build error