lundi 22 août 2016

Duplicate files copied in APK META-INF/DEPENDENCIES

Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.
> com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/DEPENDENCIES.


To resolve  this exception you must add this code to your  build.gradle,just before buildTypes


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

Aucun commentaire:

Enregistrer un commentaire

CANADA JOB