Android项目使用HttpClient 4.5

标签 android android-studio android-gradle-plugin

我想使用 Apache HttpClient 4.5,所以行

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

添加到我的 build.gradle 中,我在 Gradle 控制台中得到以下信息

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

我想知道问题是什么,我该如何解决。谢谢^^

最佳答案

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

关于Android项目使用HttpClient 4.5,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31957941/

相关文章:

android-gradle-plugin - Gradle Android项目上的任务清理背后的想法是什么

android - 如何在 Android 的操作菜单栏中添加新项目?

android - 在 flutter 中使用 in_app_review 包?

android - 不执行 Volley JSON onResponse 函数

android - 项目升级到gradle后无法编译 :2. 1.0-alpha5

android - 我可以为 CI 和 Android Studio 设置单独的 gradle.properties 吗?

Android "Back"按钮操作

android - 如何在 Kotlin 中使用 Thread.sleep()

Android Studio - 无法在我的设备上调试

android - 如何在 Android Studio 的多行上应用 TAB