Android项目使用的HttpClient 4.5项目、Android、HttpClient

2023-09-07 17:20:46 作者:半生战骨

我想使用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!