Android studio Android Studio Gradle依赖项被忽略,因为它可能存在冲突
我使用的是Android studio,我需要使用以下依赖项: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
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:。