我正在尝试添加以下依赖项,但它被忽略了。我不明白如何解决它,请帮助我谢谢。
依赖
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
最佳答案
您可以在模块的 build.gradle 文件中排除依赖项。
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 - 由于 Android Studio 冲突而忽略了依赖项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30460148/