https://kotlinlang.org logo
Title
k

karandeep singh

05/26/2023, 6:51 AM
Hi folks. I am trying to run the kmm compose multiplatform. previously it was working fine. suddenly I am getting this erro
e: java.lang.IllegalStateException: e: Could not find "/Users/karandeepsingh/AndroidStudioProjects/compose-multiplatform-ios-android-template/shared/build/kotlinTransformedMetadataLibraries/commonMain/org.jetbrains.kotlinx-atomicfu-0.17.3-nativeInterop-8G5yng.klib" in [/Users/karandeepsingh/Library/Application Support/kotlin/daemon]
tried the template from the github and getting this error.
m

mohamed rejeb

05/26/2023, 6:54 AM
Yes, this happens a lot, to fix the problem add the atomicfu dependency to your project and then you can delete it when the problem is fixed. Add this to your project `build.gradle.kts`:
buildscript {
    dependencies {
      // Use the same version in the error
      classpath("org.jetbrains.kotlinx:atomicfu-gradle-plugin:0.17.3")
    }
}

allprojects {
    apply(plugin = "kotlinx-atomicfu")    
}