【发布时间】:2015-08-25 16:25:52
【问题描述】:
我在我的项目中使用 httpmime 和 httpcore,我收到了这个警告
警告:依赖 org.apache.httpcomponents:httpclient:4.4.1 是 忽略调试,因为它可能与内部版本冲突 由安卓提供。
警告:依赖 org.apache.httpcomponents:httpclient:4.4.1 是 忽略调试,因为它可能与内部版本冲突 由安卓提供。
我的依赖看起来像这样
dependencies {
compile files('libs/gson-2.2.2.jar')
compile files('libs/classes.jar')
compile files('libs/gcm.jar')
compile files('libs/splunk-mint-4.2.jar')
compile 'com.android.support:appcompat-v7:22.2.0'
compile 'org.apache.httpcomponents:httpcore:4.4.1'
compile 'org.apache.httpcomponents:httpmime:4.4.1'}
按照其他地方的建议,我将此添加到我的 build.gradle 文件中
packagingOptions {
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/notice.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/dependencies.txt'
exclude 'META-INF/LGPL2.1'}
知道如何解决这个问题吗?
【问题讨论】: