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 然后出现此错误
最佳答案
将此添加到您的local.properties中
org.gradle.jvmargs=-XX\:MaxHeapSize\=512m -Xmx512m
在build.gradle中设置
multiDexEnabled = true
关于android - 重复的zip条目:android/support/v4/media/VolumeProviderCompat $ ControlType,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45893517/