Android Gradle plugin 0.7.0: “duplicate files during packaging of APK”

后端 未结 20 2815
谎友^
谎友^ 2020-11-22 08:51

Using Android Gradle plugin 0.7.0 with the following build.gradle:

buildscript {
    repositories {
        mavenCentral()
    }

    dependenci         


        
20条回答
  •  Happy的楠姐
    2020-11-22 09:05

    The same problem when I export the library httclient-4.3.5 in Android Studio 0.8.6 I need include this:

    packagingOptions{
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/LICENSE.txt'
    }
    

    The library zip content the next jar:

    commons-codec-1.6.jar
    commons-logging-1.1.3.jar
    fluent-hc-4.3.5.jar
    httpclient-4.3.5.jar
    httpclient-cache-4.3.5.jar
    httpcore-4.3.2.jar
    httpmime-4.3.5.jar
    

提交回复
热议问题