本文介绍了Android项目使用的HttpClient 4.5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Apache的HttpClient 4.5,太行

I would like to use Apache HttpClient 4.5, so the line

compile 'org.apache.httpcomponents:httpclient:4.5'

在我build.gradle增加,和我在摇篮控制台以下

is added in my build.gradle, and I get the following in Gradle Console

Configuration on demand is an incubating feature.
WARNING: Dependency org.apache.httpcomponents:httpclient:4.5 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 would like to know what is the problem and how could I solve it. Thanks^^

推荐答案

转到阿帕奇,我已经找到了他们的Andr​​oid使用HttpClient的为Android 4.3.5。我的项目中使用这些JAR文件作为库(在摇篮不编译)。您可以尝试下载这里。希望这有助于!

Go to Apache, I have found for Android they use HttpClient for Android 4.3.5. My projects use these Jar files as library (not compiled in gradle). You can try download here. Hope this help!

这篇关于Android项目使用的HttpClient 4.5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-19 16:43