`

(转) Duplicate files copied in APK META-INF/DEPENDENCIES

 
阅读更多

转自:http://blog.csdn.net/edagarli/article/details/23345771?c=fc4e023034ff74698e576d85de1603fe

 

 

File1:/home/slava/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpmime/4.3.1/f7899276dddd01d8a42ecfe27e7031fcf9824422/httpmime-4.3.1.jarFile2:/home/slava/.gradle/caches/modules-2/files-2.1/org.apache.httpcomponents/httpmime/4.3.1/f7899276dddd01d8a42ecfe27e7031fcf9824422/httpmime-4.3.1.jar
解决方法:
在该工程的build.gradle下修改:
android {
    packagingOptions {
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'}// ...}
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics