相关性被忽略,因为冲突的Android工作室 [英] Dependency ignored because of conflict Android studio
问题描述
我想添加以下的依赖却是不容忽视。我不知道如何解决它,请帮我谢谢你。
依赖
编译com.google.apis:谷歌API-服务驱动:V2-rev170-1.20.0
华林忽视依赖
警告:依赖org.apache.httpcomponents:httpclient的:4.0.1将被忽略的调试,因为它可与内部版本冲突的 搭载Android提供的。 如遇问题,请及时与jarjar重新包装更改类包警告:依赖 org.apache.httpcomponents:HttpClient的:4.0.1被忽略发布的 它可以是相互冲突的与由机器人提供的内部版本。 如遇问题,请及时与jarjar重新包装更改类包
您可以在模块的build.gradle文件中排除的相关性。
编译('com.google.apis:谷歌API-服务驱动:V2-rev170-1.20.0'){
排除模块:HttpClient的'//由工件名称
按组org.apache.httpcomponents'//:排除组
按名称和组的HttpClient'//:排除组:org.apache.httpcomponents',模块
}
I'm trying to add the following dependency but it is ignore. I can't understand how to resolve it please help me Thank you.
Dependency
compile 'com.google.apis:google-api-services-drive:v2-rev170-1.20.0'
Waring for ignoring dependency
Warning:Dependency org.apache.httpcomponents:httpclient:4.0.1 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 Warning:Dependency org.apache.httpcomponents:httpclient:4.0.1 is ignored for release 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
You can exclude dependencies in the build.gradle file of your module.
compile('com.google.apis:google-api-services-drive:v2-rev170-1.20.0') {
exclude module: 'httpclient' //by artifact name
exclude group: 'org.apache.httpcomponents' //by group
exclude group: 'org.apache.httpcomponents', module: 'httpclient' //by both name and group
}
这篇关于相关性被忽略,因为冲突的Android工作室的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!