0

提供的內部版本衝突的得到這個警告在收到警告對使用Android

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' 

增加彈性搜索依賴請幫助我,我怎麼能解決這個

+0

這是android studio的起源。你應該忍受它。 –

回答

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

+0

沒有它的不工作 – FaisalAhmed