Hey guys, I am trying to add coroutines to my com...
# multiplatform
n
Hey guys, I am trying to add coroutines to my commonMain, but am getting an error msg:
KMP5:jsMain: Could not resolve org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0-RC.
I added:
Copy code
sourceSets {
        val commonMain by getting {
            dependencies {
                implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.9.0-RC") //<<-
             }
         }
the documentation in the repository says to add it in this way. Am I missing something?
s
did you added plugin on
Copy code
plugins {
    id(org.jetbrains.kotlin.multiplatform)
}
build.gradle?
n
Yes. I have reduced the version number to
1.8.0
and it seems to work now. I am not sure why.