I'm trying to add `wasmJs` target in my compose mu...
# multiplatform
s
I'm trying to add
wasmJs
target in my compose multiplatform project. I've added
Copy code
buildscript {
    dependencies {
        classpath("org.jetbrains.kotlinx:atomicfu-gradle-plugin:0.23.2")
    }
}
allprojects {
    apply(plugin = "kotlinx-atomicfu")
}
in my root-level gradle file. The project runs fine for desktop and ios targets; but fails for Android with the following error:
Copy code
Execution failed for task ':composeApp:processDebugResources'.
> Could not resolve all files for configuration ':composeApp:debugCompileClasspath'.
   > Could not resolve org.jetbrains.kotlinx:atomicfu:0.23.2.
     Required by:
         project :composeApp
      > Cannot find a version of 'org.jetbrains.kotlinx:atomicfu' that satisfies the version constraints:
           Dependency path 'WonderousCompose:composeApp:unspecified' --> 'org.jetbrains.kotlinx:atomicfu:0.23.2'
           Constraint path 'WonderousCompose:composeApp:unspecified' --> 'org.jetbrains.kotlinx:atomicfu:{strictly 0.21.0}' because of the following reason: debugRuntimeClasspath uses version 0.21.0
How can I resolve this? Thanks.
h
Remove your strict atomicFu dependency constraint.
s
Removing it causes
No matching variant of org.jetbrains.kotlinx:atomicfu:0.21.0 was found
error.