I\'m experiencing an issue where multiple versions of the same class are showing up in my classpath. The class in question is javax.ws.rs.core.UriBuilder. The
javax.ws.rs.core.UriBuilder
You can exclude an transitive dependency module like this:
compile ('org.glassfish.jersey.core:jersey-client:2.17') { exclude group: 'javax.ws.rs' exclude module: 'javax.ws.rs-api' }
ref: 50.4.7 here