2016-10-21 5 views
0

Ich bekomme die folgende Ausnahme, wenn ich versuchte, mein Projekt auf einem Gerät mit Kitkat O.S. Ich bin mir nicht sicher, was dieser Fehler ist. Es funktioniert perfekt auf Lollipop-Gerät.android Transform Exception

Ausnahme:

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

build.gradle:

apply plugin: 'com.android.application' 

android { 
    compileSdkVersion 24 
    buildToolsVersion "23.0.3" 


    defaultConfig { 
     applicationId "com.stackoverflow.application" 
     minSdkVersion 15 
     targetSdkVersion 24 
     versionCode 1 
     versionName "1.0" 
     multiDexEnabled true 

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

     } 

    } 
} 
repositories { 
    jcenter() 
} 

dependencies { 
    compile fileTree(include: ['*.jar'], dir: 'libs') 
    testCompile 'junit:junit:4.12' 
    compile 'com.android.support:multidex:1.0.1' 
    compile 'com.android.volley:volley:1.0.0' 
    compile 'com.android.support:cardview-v7:24.2.1' 
    compile 'com.android.support:design:24.2.1' 
    compile 'com.android.support:appcompat-v7:24.2.1' 
    compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5' 
    compile project(':payUMoneysdk') 
} 
+0

Haben Sie eine Volley-JAR-Datei im libs-Ordner? –

+0

Ich habe eine Gateway-Integrationsbibliothek. Es benutzt Volley in seinem Aufbau. – jobin

+0

Konnte das der Grund sein? – jobin

Antwort

1

Es sieht aus wie Sie bereits Volley-Bibliothek in einem Ihrer Abhängigkeiten haben.

Entfernen Sie die folgende Zeile von Ihrem build.gradle.

compile 'com.android.volley:volley:1.0.0'