发现与操作系统无关的路径“ META-INF / DEPENDENCIES”存在多个文件问题

时间:2019-01-06 12:25:11

标签: javascript android android-studio

https://i.stack.imgur.com/hHNMR.jpg

有人说发现多个文件与os独立,但我更改了所有未运行的编译文件版本。我是android studio的新手,请帮助我

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'})
    implementation 'com.android.support:appcompat-v7:25.3.1'
    implementation 'com.android.support:design:25.3.1'
    implementation 'de.hdodenhof:circleimageview:1.2.1'
    implementation 'com.android.support:multidex:1.0.1'
    implementation 'com.tapadoo.android:alerter:2.0.1'
    implementation 'com.google.android.gms:play-services-ads:10.0.0'
    implementation 'com.google.android.gms:play-services:10.0.0'
    implementation 'com.google.android.gms:play-services-appindexing:9.8.0'
    implementation 'com.squareup.retrofit2:retrofit:2.0.0-beta4'
    implementation 'com.squareup.retrofit2:converter-gson:2.0.0-beta4'
    implementation 'com.android.support:cardview-v7:25.3.1'
    implementation 'com.kaopiz:kprogresshud:1.0.5'
    implementation files('libs/apache-commons-httpmime.jar')
    implementation 'com.mcxiaoke.volley:library:1.0.19'
    implementation 'org.apache.httpcomponents:httpclient:4.5'
    implementation 'com.google.code.gson:gson:2.2.4'
    testImplementation 'junit:junit:4.12'
}

1 个答案:

答案 0 :(得分:0)

您必须在excludepickFirst(完全不包含任何内容)或packagingOptions(仅重复的一个),例如

android {
    ...
    packagingOptions {
        ...
        exclude 'META-INF/DEPENDENCIES'
        // or use below
        // pickFirst 'META-INF/DEPENDENCIES'
        ...
    }
}

在此处查看更多详细信息:1