Attempt to migrate on canary 5

Viewed 223

I've try to migrate to android-studio 3 canary 5 and got this error

Error:Execution failed for task ':data:createFullJarDebug'.
> java.util.zip.ZipException: duplicate entry: META-INF/data_debug.kotlin_module

In project I have 3 module app, data, domain and I tried add

packagingOptions {
    exclude 'META-INF/data_debug.kotlin_module'
}

to app and data but the error appears all over.

other

In build.gradle I added

javaCompileOptions {
    annotationProcessorOptions {
        includeCompileClasspath = true
    } 
}

changed compile to implementation and remove retrolambda that is all what I did for migrate to new Android Studio. Please help me fix this error.

update

canary 7 problem not disappear

2 Answers

I had a similar issue with Android Studio 3.0 stable. BuildClean Project resolved this problem.

Related