本文介绍了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 中,我在 Gradle Console 中得到以下内容

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^^

推荐答案

转到 Apache,我发现对于 Android,他们使用 HttpClient for Android 4.3.5.我的项目使用这些 Jar 文件作为库(不在 gradle 中编译).您可以尝试下载这里.希望这有帮助!

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