KT_
KT_

Reputation: 1087

Android Studio reporting a dependency conflict for org.apache.httpcomponents:httpclient that I can't find

I recently added

compile 'com.google.apis:google-api-services-drive:v3-rev76-1.22.0

to my project, and now I'm getting:

"/my/project/path/app/build.gradle

WARNING: Dependency org.apache.httpcomponents:httpclient:4.0.1 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"

But I can't find any reference to that anywhere in the project, much less in any gradle configuration file.

Is that probably a result of some other library I'm using? And if so, how do I figure out which one and/or work around it if there's no indication in the warning where the problem actually is?

Upvotes: 0

Views: 416

Answers (1)

ThrawnCA
ThrawnCA

Reputation: 1081

Yes, it's because google-api-services-drive indirectly depends on httpclient (google-api-services-drive needs google-api-client, which needs google-http-client-jackson2 and google-oauth-client, which both need google-http-client, which needs httpclient).

There are instructions for viewing the dependency tree on another question: Using gradle to find dependency tree

Upvotes: 1

Related Questions