重复的zip条目:android / support / v4 / media / VolumeProviderCompat $ ControlType

时间:2017-08-26 08:30:33

标签: android gradle android-gradle

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.
> java.io.IOException: Can't write [/Users/admin/Documents/Tony Project/LOLC/Test/two news feed/HDMI/app/build/intermediates/multi-dex/debug/componentClasses.jar] (Can't read [/Users/admin/Documents/Tony Project/LOLC/Test/two news feed/HDMI/app/build/intermediates/transforms/desugar/debug/9.jar] (Duplicate zip entry [9.jar:android/support/v4/media/VolumeProviderCompat$ControlType.class]))

在我添加的module.gradle中 multiDexEnabled true 然后我收到此错误

2 个答案:

答案 0 :(得分:-1)

您应该尝试清理并重建项目。

答案 1 :(得分:-1)

在local.properties

中添加
org.gradle.jvmargs=-XX\:MaxHeapSize\=512m -Xmx512m

在build.gradle中设置multiDexEnabled = true