`Could not resolve org.jetbrains.kotlinx:kotlinx-c...
# kotlin-native
c
Could not resolve org.jetbrains.kotlinx:kotlinx-coroutines-core-native:1.3.3
in Kotlin MPP project, what should i do? Kotlin 1.3.61 Gradle: 6.1.1 Kotlin DSL script
a
Do you have
Copy code
enableFeaturePreview('GRADLE_METADATA')
in your settings.gradle.kts?
c
yes
👍 1
maybe it is related to some specific repo?
here is my scripts
👀 1
@Artyom Degtyarev [JB] anything that can help me to use coroutines at native?
a
I’m trying to figure it out, there should be some simple thing we’re missing here.
hmm, can you try to use this snippet instead of your sourceSets whole block?
Copy code
sourceSets["commonMain"].dependencies {
    implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core-common:1.3.3")
    implementation("org.jetbrains.kotlinx:kotlinx-serialization-runtime:0.14.0")
}
c
let me try
CoroutineScope
still red, cant import them, but problem with resolver gone
@Artyom Degtyarev [JB] anything else?
a
s
I had an issue the other day that 1.3.3 isn’t in npm for js
c
@Artyom Degtyarev [JB] ok thanks