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
hfhbd
02/11/2024, 10:19 AM
Remove your strict atomicFu dependency constraint.
s
Shreyash Kore
02/11/2024, 12:00 PM
Removing it causes
No matching variant of org.jetbrains.kotlinx:atomicfu:0.21.0 was found