获取与Android提供的内部版本冲突的警告

时间:2017-02-17 11:40:38

标签: android elasticsearch dependency-injection android-gradle

获得此警告

Warning:WARNING: Dependency org.apache.httpcomponents:httpclient:4.5.2 is ignored for debug as it may be conflicting with the internal version provided by Android.

Warning:WARNING: Dependency commons-logging:commons-logging:1.1.3 is ignored for debug as it may be conflicting with the internal version provided by Android.

在gradle中添加弹性搜索依赖项

    compile 'org.elasticsearch.client:rest:5.2.1'

请帮我解决这个问题

1 个答案:

答案 0 :(得分:0)

你可以尝试这个:

compile ('com.amazonaws:aws-java-sdk-sns:1.10.2') {
            exclude group: 'commons-logging', module: 'commons-logging'
}
compile ('com.amazonaws:aws-java-sdk-sns:1.10.2') {
            exclude group: 'org.apache.httpcomponents', module: 'httpclient'
}

如果有效,请告诉我。有关更详细的答案,请参阅this link