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

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

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

buildscript {
    repositories {
        mavenCentral()
    }

    dependenci         


        
20条回答
  •  温柔的废话
    2020-11-22 09:21

    Same here with

    dependencies {
        compile 'org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:1.0.0'
    }
    
    packagingOptions {
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/NOTICE'
    }
    

    I lost like 2 days for that weird error... Why is this still happening in gradle 1.0.0 ? That is very disturbing for newbies... Anyway, thanks for that info i thought it was on my code :)

提交回复
热议问题