# compose

Michael Paus

05/06/2022, 11:49 AM
I am just trying to get an older Compose project built again but after some tool and library updates the build fails with
Copy code
2 files found with path 'META-INF/kotlinx_coroutines_core.version'.
Adding a packagingOptions block may help, please refer to
for more information
Besides the fact that the given link is wrong I am wondering what I shall do to get that working again. kotlinx_coroutines_core is used in a thousand places. How can I find the conflicting ones?
I am using AndroidStudio
Copy code
Android Studio Bumblebee | 2021.1.1 Patch 3
Build #AI-211.7628.21.2111.8309675, built on March 16, 2022
Runtime version: 11.0.11+0-b60-7590822 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.3.1
and Kotlin 1.6.20 and Compose 1.2.0-alpha08


05/06/2022, 12:09 PM
does the following snippet help?
Copy code
android {
    packagingOptions.resources.excludes += "/META-INF/{AL2.0,LGPL2.1}"

Michael Paus

05/06/2022, 12:55 PM
I have that already in my build file but adding a pattern to exclude the kotlinx_coroutines_core.version would not just remove the duplicate entry.
@ste Although I still think this can’t be the solution it is indeed a workarround. I added kotlinx_coroutines_core.version to the above snippet and it worked. Thanks a lot.
👍 1