Java 使用Jarmergingfordebug';执行TransformClasses失败;。(截击)

Java 使用Jarmergingfordebug';执行TransformClasses失败;。(截击),java,android,android-gradle-plugin,android-volley,entity-relationship,Java,Android,Android Gradle Plugin,Android Volley,Entity Relationship,我正在尝试在android studio虚拟模拟器上构建我的应用程序,我已经成功地在api级别21及以上进行了测试,现在我正在测试较低级别的api 19,但无论何时运行,我都会遇到以下错误: 错误:任务“:app:transformClassesWithJarMergingForDebug”的执行失败 com.android.build.api.transform.TransformException:java.util.zip.zipeException:重复条目:com/android/vo

我正在尝试在android studio虚拟模拟器上构建我的应用程序,我已经成功地在api级别21及以上进行了测试,现在我正在测试较低级别的api 19,但无论何时运行,我都会遇到以下错误:

错误:任务“:app:transformClassesWithJarMergingForDebug”的执行失败

com.android.build.api.transform.TransformException:java.util.zip.zipeException:重复条目:com/android/volley/Request$Priority.class

这是我的gradle文件:

 apply plugin: 'com.android.application'

android {
compileSdkVersion 25
buildToolsVersion "25.0.0"
defaultConfig {
    minSdkVersion 15
    targetSdkVersion 25
    versionCode 1
    versionName "1.0"
    multiDexEnabled true
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
}
repositories {
mavenCentral()
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
    exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.1.0'
compile 'com.android.support:support-v4:25.1.0'
compile 'com.android.volley:volley:1.0.0'
compile 'com.mcxiaoke.volley:library:1.0.19'
compile 'dev.dworks.libs:volleyplus:0.1.4'
compile 'com.squareup.okhttp3:okhttp:3.5.0'
compile 'com.google.android.gms:play-services-gcm:10.0.1'
compile 'com.google.firebase:firebase-appindexing:10.0.1'
compile 'com.android.support:design:25.1.0'
compile 'com.roughike:bottom-bar:1.2.1'
compile 'com.ncapdevi:frag-nav:1.2.2'
compile 'me.dm7.barcodescanner:zxing:1.8.4'
compile 'com.android.support:cardview-v7:25.1.0'
compile 'com.android.support:recyclerview-v7:25.1.0'
compile 'com.google.firebase:firebase-core:10.0.1'
compile 'com.google.firebase:firebase-messaging:10.0.1'
compile 'de.hdodenhof:circleimageview:2.1.0'
compile 'com.loopj.android:android-async-http:1.4.9'
compile 'net.gotev:uploadservice:3.0.3'
compile 'com.facebook.android:facebook-android-sdk:[4,5)'
compile 'com.google.android.gms:play-services-auth:10.0.1'
compile 'com.journeyapps:zxing-android-embedded:3.4.0'
compile 'com.ogaclejapan.smarttablayout:library:1.6.1@aar'
compile 'com.ogaclejapan.smarttablayout:utils-v4:1.6.1@aar'
compile 'com.hedgehog.ratingbar:app:1.1.2'
testCompile 'junit:junit:4.12'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.jakewharton.picasso:picasso2-okhttp3-downloader:1.1.0'

}
apply plugin: 'com.google.gms.google-services'

我在网上找到了很多关于这个问题的解决方案,但并不是专门针对这个问题,我相信问题出在volley上,但由于我的代码,我无法删除任何库。我应该如何解决这个问题?谢谢大家!

您正在使用两个不同版本的volley库

 compile 'com.android.volley:volley:1.0.0'
 compile 'com.mcxiaoke.volley:library:1.0.19'
使用上述任何一种方法

我也不知道

compile 'dev.dworks.libs:volleyplus:0.1.4'

如果该库与上述两个库相似,则错误仍将保留

是否可以同时保留这两个库?因为我在我的项目中使用了这两个库。这两个库都是同一个库。为什么您同时需要这两个库?这些库中您可能需要的独特之处是什么@杰里科