Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebug'

在引入聊天包时运行包一下错误:

Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.

> java.io.IOException: Can't write [

\app\build\intermediates\multi-dex\debug\componentClasses.jar] (Can't read [\app\build\intermediates\transforms\desugar\debug\45.jar(;;;;;;**.class)] (Duplicate zip entry [45.jar:io/github/rockerhieu/emojicon/emoji/Emojicon$1.class]))

研究发现是JDK 1.8 版本问题、这并不像是偶然现象,于是怀疑 Gradle 与 JDK 1.8 存在兼容性问题、尝试将工程依赖的 JDK 版本降到 1.7,运行成功。

你可能感兴趣的:(Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebug')