Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

I don't know if you figured it out yet, but seeing as all of those are publicly available libraries, I suggest getting rid of the JARs and getting them as a dependency from JCenter/Maven Central. If you are not sure how to do this, here is an example. One library you are using is Retrofit, so you would go to a website like Maven Central (http://search.maven.org/) and search for the library and get the Gradle dependency for your version (http://search.maven.org/#artifactdetails|com.squareup.retrofit|retrofit|1.7.1|jar):

compile 'com.squareup.retrofit:retrofit:1.7.1' 

Do this for all of your dependencies. Once you have them set up as Gradle dependencies instead of JARs, you can do what is explained here: http://stackoverflow.com/a/21100040/2245921https://stackoverflow.com/a/21100040/2245921

Basically, go into your :app folder through a terminal, and run the following:

../gradlew -q dependencies 

And Gradle will draw a dependency tree. There you will be able to see duplicate dependencies and more easily deal with them.

I don't know if you figured it out yet, but seeing as all of those are publicly available libraries, I suggest getting rid of the JARs and getting them as a dependency from JCenter/Maven Central. If you are not sure how to do this, here is an example. One library you are using is Retrofit, so you would go to a website like Maven Central (http://search.maven.org/) and search for the library and get the Gradle dependency for your version (http://search.maven.org/#artifactdetails|com.squareup.retrofit|retrofit|1.7.1|jar):

compile 'com.squareup.retrofit:retrofit:1.7.1' 

Do this for all of your dependencies. Once you have them set up as Gradle dependencies instead of JARs, you can do what is explained here: http://stackoverflow.com/a/21100040/2245921

Basically, go into your :app folder through a terminal, and run the following:

../gradlew -q dependencies 

And Gradle will draw a dependency tree. There you will be able to see duplicate dependencies and more easily deal with them.

I don't know if you figured it out yet, but seeing as all of those are publicly available libraries, I suggest getting rid of the JARs and getting them as a dependency from JCenter/Maven Central. If you are not sure how to do this, here is an example. One library you are using is Retrofit, so you would go to a website like Maven Central (http://search.maven.org/) and search for the library and get the Gradle dependency for your version (http://search.maven.org/#artifactdetails|com.squareup.retrofit|retrofit|1.7.1|jar):

compile 'com.squareup.retrofit:retrofit:1.7.1' 

Do this for all of your dependencies. Once you have them set up as Gradle dependencies instead of JARs, you can do what is explained here: https://stackoverflow.com/a/21100040/2245921

Basically, go into your :app folder through a terminal, and run the following:

../gradlew -q dependencies 

And Gradle will draw a dependency tree. There you will be able to see duplicate dependencies and more easily deal with them.

Source Link

I don't know if you figured it out yet, but seeing as all of those are publicly available libraries, I suggest getting rid of the JARs and getting them as a dependency from JCenter/Maven Central. If you are not sure how to do this, here is an example. One library you are using is Retrofit, so you would go to a website like Maven Central (http://search.maven.org/) and search for the library and get the Gradle dependency for your version (http://search.maven.org/#artifactdetails|com.squareup.retrofit|retrofit|1.7.1|jar):

compile 'com.squareup.retrofit:retrofit:1.7.1' 

Do this for all of your dependencies. Once you have them set up as Gradle dependencies instead of JARs, you can do what is explained here: http://stackoverflow.com/a/21100040/2245921

Basically, go into your :app folder through a terminal, and run the following:

../gradlew -q dependencies 

And Gradle will draw a dependency tree. There you will be able to see duplicate dependencies and more easily deal with them.