나는 안드로이드 스튜디오 가상 시뮬레이터에 내 애플 리케이션을 만들려고하는데, 나는 성공적으로 API 레벨 21 이상에서 테스트를했다. 이제는 저수준 API 19를 테스트 중이지만 언제든지이 오류가 발생한다.transformClassesWithJarMergingForDebug '실행에 실패했습니다.' (Volley)
오류 : ': app : transformClassesWithJarMergingForDebug'작업에 대한 실행이 실패했습니다.
com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: 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:[email protected]'
compile 'com.ogaclejapan.smarttablayout:utils-v4:[email protected]'
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'
하지 특히이 문제에, 나는 문제가 발리슛으로 믿고,하지만 난 인한 라이브러리를 제거 할 수 없습니다 내 코드에. 이 문제를 어떻게 해결해야합니까? 고맙습니다!
두 라이브러리를 둘 수 있습니까? 내 프로젝트에서 둘 다 사용하고 있기 때문에. – JerryKo
둘 다 같은 라이브러리 왜 둘 다 원하십니까? – Redman
당신이 필요할지도 모르는이 도서관에서 독특한 것은 무엇입니까? @ 제리 코 – Nilabja