kotlinx-io icon indicating copy to clipboard operation
kotlinx-io copied to clipboard

Duplicate of 'META-INF/kotlinx-io.kotlin_module'

Open RobertLK opened this issue 4 years ago • 0 comments

Basically identical to https://github.com/Kotlin/kotlinx.coroutines/issues/1797 but affects multiplatform projects using kotlinx-io because the same module name exists in kotlinx-io and kotlinx-io-jvm.

Note even removing the kotlinx-io:1.1.6 dependency doesn't help because it's also a dependency of kotlin-stdlib-common

        commonMain {
            dependencies {
                implementation kotlin('stdlib-common')
                implementation "org.jetbrains.kotlinx:kotlinx-io:$kotlinx_io_version"
            }
        }
        jvmMain {
            dependencies {
                implementation kotlin('stdlib')
                implementation "org.jetbrains.kotlinx:kotlinx-io-jvm:$kotlinx_io_version"
            }
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > More than one file was found with OS independent path 'META-INF/kotlinx-io.kotlin_module'

Tested with AGP 3.6.1, kotlin 1.3.70

RobertLK avatar Mar 25 '20 14:03 RobertLK