Shreyash Kore
02/11/2024, 9:43 AMwasmJs
target in my compose multiplatform project. I've added
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:
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.hfhbd
02/11/2024, 10:19 AMShreyash Kore
02/11/2024, 12:00 PMNo matching variant of org.jetbrains.kotlinx:atomicfu:0.21.0 was found
error.