Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I have a dependency in Gradle and i get this message when i sync grade Warning:Dependency org.apache.httpcomponents:httpclient:4.4 is ignored for debug 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

I mostly ignored this issue until i tried to upload an image to my endpoint. It caused an error on the multientity build point. Where it did not know ContentType.create constructor. The two dependencies i have incorporated are compile 'org.apache.httpcomponents:httpmime:4.4' compile 'org.apache.httpcomponents:httpclient-android:4.3.5.1'

Anyone have any idea on how to get the dependency working correctly? I downloaded the jar and referenced them in gradle but that did not work. Just seems like its a collision of the org.apache that is default in the API and the one that is provided by apache.

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.