【发布时间】:2017-07-03 12:40:34
【问题描述】:
我尝试迁移到 android-studio 3 canary 5 并收到此错误
Error:Execution failed for task ':data:createFullJarDebug'.
> java.util.zip.ZipException: duplicate entry: META-INF/data_debug.kotlin_module
在项目中,我有 3 个模块 app、data、domain,我尝试添加
packagingOptions {
exclude 'META-INF/data_debug.kotlin_module'
}
到app和data,但错误出现了。
其他
在build.gradle我加了
javaCompileOptions {
annotationProcessorOptions {
includeCompileClasspath = true
}
}
将compile 更改为implementation 并删除retrolambda,这就是我为迁移到新的Android Studio 所做的一切。请帮我解决这个错误。
更新
canary 7 问题不会消失
【问题讨论】:
-
Canary 5 对我来说太麻烦了。所以,我的建议是回到金丝雀 4。
标签: android gradle kotlin android-studio-3.0