嗨當我將改裝GSON轉換器的gradle我我得到這個錯誤java.util.zip.ZipException的改造和GSON
Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/gson/annotations/Expose.class
這裏是我的gradle產出。
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile files('libs/GenAsync.1.2.jar')
compile files('libs/gson-2.2.4.jar')
compile files('libs/KGJsonConverter.jar')
compile files('libs/MD5Simply.jar')
compile files('libs/PhotoUtil.jar')
compile files('libs/android-viewbadger.jar')
compile 'com.squareup.retrofit2:converter-gson:2.1.0'
testCompile 'junit:junit:4.12'
compile files('libs/retrofit-2.1.0.jar')
}
你能幫我解決我的問題嗎?謝謝