Android项目使用HttpClient 4.5

时间:2015-08-12 06:50:49

标签: android android-studio android-gradle

我想使用Apache HttpClient 4.5,所以行

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

添加到我的build.gradle中,我在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

我想知道问题是什么,我怎么能解决它。感谢^^

1 个答案:

答案 0 :(得分:1)

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