Error: More than one file was found with OS independent path 'META-INF/DEPENDENCIES

修改App的build.gradle

android {
    compileSdkVersion 27
    defaultConfig {
        applicationId "com.whoami.gcxhzz"
        minSdkVersion 19
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"


    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    sourceSets {
        main{
            jniLibs.srcDirs = ['libs']
        }
    }

    packagingOptions {//加上这写代码
        pickFirst 'META-INF/*'
    }
}

添加

   packagingOptions {//加上这写代码
        pickFirst 'META-INF/*'
    }

你可能感兴趣的:(Error: More than one file was found with OS independent path 'META-INF/DEPENDENCIES)