Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ssis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android studio Android Studio Gradle依赖项被忽略,因为它可能存在冲突_Android Studio_Android Gradle Plugin - Fatal编程技术网

Android studio Android Studio Gradle依赖项被忽略,因为它可能存在冲突

Android studio Android Studio Gradle依赖项被忽略,因为它可能存在冲突,android-studio,android-gradle-plugin,Android Studio,Android Gradle Plugin,我使用的是Android studio,我需要使用以下依赖项: compile 'org.jboss.resteasy.mobile:resteasy-mobile:1.0.0' 此依赖项包含org.apache.httpcomponents:httpclient:4.0.3 Android Studio出现以下错误: Warning:WARNING: Dependency org.apache.httpcomponents:httpclient:4.0.3 is ignored for re

我使用的是Android studio,我需要使用以下依赖项:

compile 'org.jboss.resteasy.mobile:resteasy-mobile:1.0.0'
此依赖项包含
org.apache.httpcomponents:httpclient:4.0.3
Android Studio出现以下错误:

Warning:WARNING: Dependency org.apache.httpcomponents:httpclient:4.0.3 is ignored for release as it may be conflicting with the internal version provided by Android.
我如何强制使用我的依赖项而不是Android提供的依赖项?我可以从Android中排除httpclient吗

Thx.

您可以使用

 android {
     useLibrary 'org.apache.http.legacy'
    }

告诉android studio您正在使用旧库。

该库非常旧,包含Apache,android已删除Apache:。