What could be wrong?
# compose
v
What could be wrong?
n
I got the same issue, it is because of AS Bumblebee (well the AGP Plugin 7.1.0)
🙏 1
1
b
Don't know but you can usually work around this error by adding to your
android
block in build.gradle:
Copy code
packagingOptions {
    pickFirst 'META-INF/AL2.0'
}
🙏 1
n
I tried with exclude and the error was the same unfortunatelly
😢 2
maybe I'm wrong about AGP 7.1 (I tried the compose test with this), it might comes from compose ui tests
ok so it seems the culprit is
Copy code
androidTestImplementation("androidx.compose.ui:ui-test-junit4:$compose_version")
there might be some dependencies in there we have to exclude 😕
probably should open a bug report about that too
v
fix
Copy code
packagingOptions {
    resources {
        excludes.add("META-INF/AL2.0")
        excludes.add("META-INF/LGPL2.1")
    }
}