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

Reprinted from: 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
Solution:
Modify under the project's 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'}// ...}

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326779739&siteId=291194637