【发布时间】:2015-03-08 17:51:00
【问题描述】:
在我使用 firebase 的 Android 项目中,gradle 构建会显示这个恼人的警告:
WARNING: Dependency org.apache.httpcomponents:httpclient:4.0.1 is ignored for devDebug 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.firebase:firebase-client-android:2.2.1') {
exclude module: 'org.apache.httpcomponents:httpclient:4.0.1' //IGNORED
}
我也尝试删除建议的版本,但警告仍然存在
compile ('com.firebase:firebase-client-android:2.2.1') {
exclude group:'org.apache.httpcomponents', module: 'httpclient' //SAME
}
【问题讨论】:
-
一定要接受其中一个答案,以便将来帮助他人。我知道您需要等待一段时间。
标签: java android gradle firebase