2017-08-26 34 views
0
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])) 

在我加入 multiDexEnabled真然後我得到這個錯誤

+1

你可以分享你的gradle這個代碼添加呢? – hasbi

+0

也許你可以將兩個新聞提要文件夾更改爲two_news_feed – hasbi

+0

爲什麼你啓用Multidex?你在編譯什麼? –

回答

-1

你應該嘗試清理和重建module.gradle你的項目。

+0

是的,每當我有一個。 – HRCJ

+0

然後使緩存無效並重新啓動 –

-1

在local.properties

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

設置multiDexEnabled = true中的build.gradle

+1

這不是啓用Multidex的唯一步驟 –

相關問題