問題描述
我不確定這個錯誤是什么意思.
I am not sure what this error means.
Execution failed for task ':excelSior:packageAllDebugClassesForMultiDex'.
> java.util.zip.ZipException: duplicate entry: android/support/v4/util/TimeUtils.class
我目前正在為我的庫使用 android-support-v4.jar
I am currently using android-support-v4.jar
for my libraries
dependencies {
compile project(':addThisSDK')
compile project(':centeredContentButton')
compile project(':googleplayservices_lib')
compile files('libs/adxtag2.4.6.jar')
compile files('libs/android-support-v4.jar')
compile files('libs/aws-android-sdk-1.7.1.1-debug.jar')
compile files('libs/commons-lang-2.6.jar')
compile files('libs/crittercism_v4_4_0_sdkonly.jar')
compile files('libs/dd-plist.jar')
compile files('libs/FiksuAndroidSDK_4.1.1.jar')
compile files('libs/iqengines-sdk-barcode.jar')
compile files('libs/irEventTracker-1.2.jar')
compile files('libs/jolt-core-0.0.7.jar')
compile files('libs/json-utils-0.0.7.jar')
compile files('libs/jsoup-1.7.2.jar')
compile files('libs/kooaba-api-v4-java.jar')
compile 'com.android.support:multidex:1.0.0'
}
在 gradle 同步期間不會出現錯誤.就在我嘗試運行應用程序時
Error does not show up during gradle sync. Just when I try to run the application
可能是什么問題?
推薦答案
需要檢查是否插入了v4庫和編譯庫?您不得在您的應用或依賴程序中重復庫.
You need to check that you have inserted v4 library and compile library? You must not repeat library in your app or your dependence program.
刪除重復庫,只保留一個 V4.
delete the repeat library so that just one V4 remains.
在您的應用程序目錄 build.gradle
文件中添加此命令:
in your app dir build.gradle
file
add this command:
android{
configurations {
all*.exclude group: 'com.android.support', module: 'support-v4'
all*.exclude group: 'com.android.support', module: 'support-annotations'
}
}
它對我有用!你可以試試!
it works for me! You can try it!
這篇關于java.util.zip.ZipException:packageAllDebugClassesForMultiDex 期間出現重復條目的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!