Error generating the apk in android, Error: Execution failed for task ': app: transformClassesWithJarMergingForDebug'. TransformException

0

I have a problem when generating the build apk in android, every time I want to generate it I get an error of

  

Error: Execution failed for task ': app: transformClassesWithJarMergingForDebug'. > com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com / fast

this is my file build.gradle :

android {
compileSdkVersion 26
buildToolsVersion "26.0.1"
defaultConfig {
    applicationId "com.example.juan.ededapp"
    minSdkVersion 15
    targetSdkVersion 26
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    multiDexEnabled true
}
    packagingOptions {


        exclude 'META-INF/DEPENDENCIES.txt'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/notice.txt'
        exclude 'META-INF/license.txt'
        exclude 'META-INF/dependencies.txt'
        exclude 'META-INF/LGPL2.1'
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile files('libs/google-http-client-1.22.0.jar')
    compile files('libs/google-api-client-1.22.0.jar')
    compile files('libs/google-api-client-android-1.15.0-rc.jar')
    compile files('libs/httpclient-4.5.3.jar')
    compile files('libs/library-1.2.1-sources.jar')
    compile files('libs/commons-lang3-3.7.jar')
    compile files('libs/google-api-services-prediction-v1.3-rev70-1.22.0.jar')
    compile files('libs/google-http-client-jackson2-1.22.0.jar')
    compile 'com.android.support:appcompat-v7:26.+'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    compile 'com.android.support:support-v4:26.+'
    compile 'com.mcxiaoke.volley:library:1.0.+'
    compile 'com.fasterxml.jackson.core:jackson-core:2.5.3'
    compile 'com.fasterxml.jackson.core:jackson-annotations:2.5.3'
    compile 'com.fasterxml.jackson.core:jackson-databind:2.5.3'
    compile 'com.google.android.gms:play-services-auth:10.2.0'
    compile 'com.squareup.okhttp3:okhttp:3.4.1'
    compile 'com.squareup.okhttp:okhttp:2.7.5'
    compile 'com.google.firebase:firebase-core:10.2.0'
    compile 'com.squareup.picasso:picasso:2.5.2'
    compile 'com.google.firebase:firebase-auth:10.2.0'
    testCompile 'junit:junit:4.12'
    compile files('libs/jackson-annotations-2.9.1.jar')
    compile files('libs/jackson-core-2.9.1.jar')
    compile files('libs/jackson-databind-2.9.1.jar')
    compile 'com.android.support:support-annotations:25.3.1'
    compile 'com.android.support:multidex:1.0.0'

}
apply plugin: 'com.android.application'
    
asked by Juan Salazar 22.03.2018 в 17:47
source

0 answers