https://kotlinlang.org logo
Title
s

samp

04/04/2022, 8:37 PM
hey team, i am trying to bump kotlin coroutines 1.6.0 and see the following error:
* What went wrong:
Execution failed for task ':app:mergeDebugJavaResource'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.MergeJavaResWorkAction
   > 2 files found with path 'META-INF/kotlinx_coroutines_core.version' from inputs:
      - ../org.jetbrains.kotlinx/kotlinx-coroutines-core/1.6.0/c0277601cc4f7f24fe200651c5680e2e424a0a85/kotlinx-coroutines-core-1.6.0.jar
      - ../org.jetbrains.kotlinx/kotlinx-coroutines-core-jvm/1.6.0/f3b8fd26c2e76d2f18cbc36aacb6e349fcb9fd5f/kotlinx-coroutines-core-jvm-1.6.0.jar
     Adding a packagingOptions block may help, please refer to
     <https://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.PackagingOptions.html>
     for more information
I am adding this dependency:
org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.0
I wonder who adds
kotlinx-coroutines-core-jvm
version? Is it included under
kotlinx-coroutines-core
?
Is it expected to have same Meta-INF file name? for
coroutines-core
and
coroutines-core-jvm
, for eg in the below screenshot i see that:
META-INF/kotlinx_coroutines_core.version
same for
org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.
and
org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.6.
j

Jaya Krishnan

04/07/2022, 8:13 AM
Adding a packagingOptions block may help, please refer to
     <https://google.github.io/android-gradle-dsl/current/com.android.build.gradle.internal.dsl.PackagingOptions.html>