Mutiple dependencies of httpclient causes conflicts #4

Closed
jonalmeida opened this Issue Sep 19, 2015 · 3 comments

Projects

None yet

2 participants

@jonalmeida

From what I can tell we have two httpclients being packaged:

  1. The one from coinbase-java
  2. The android port used in this sdk: httpclient-android

This causes conflicts when building a project with android-gradle (used in Android Studio):

Warning:Dependency org.apache.httpcomponents:httpclient:4.3.6 is ignored for release as it may be conflicting with the internal version provided by Android.
         In case of problem, please repackage it with jarjar to change the class packages

STR

  1. Create a blank Android project with Android Studio (current stable is 1.3.2)
  2. In the app/build.gradle add the coinbase android sdk as mentioned in the docs.
  3. Sync project to pull dependencies.
  4. Build.
  5. Observe the error output as seen above.
  6. (optional) Cry.

After comparing my project with the example android project, I've narrowed down the problem being between the httpclient in coinbase-java and the android appcompat-v7 library. Removing appcompat stops the build failures but you lose compatibility.

¯_(ツ)_/¯

Contributor
aianus commented Sep 21, 2015

It's just a warning, you can ignore it can't you?

Warning:Dependency org.apache.httpcomponents:httpclient:4.3.6 is ignored for release as it may be conflicting with the internal version provided by Android.
         In case of problem, please repackage it with jarjar to change the class packages

^ it seems to be doing the correct thing here (ignoring the incompatible dependency) by default.

Okay, I think in my sleeplessness at a hackathon during the weekend, I wasn't looking into the errors properly.

Excluding the license files in the gradle file seems to have fixed the issue..

Sorry, ignore this!

@jonalmeida jonalmeida closed this Sep 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment