https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
e

edenman

06/11/2020, 1:49 AM
Trying to upgrade coroutines so i can use StateFlow stuff and getting a
Unresolved reference: MutableStateFlow
compile error in my kmp module. Anybody else seen this? The IDE resolves it no problem
import kotlinx.coroutines.flow.MutableStateFlow
is the import statement, which looks right afaict
and i have this in my
commonMain
deps
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core-common:$coroutinesVersion")
kotlin 1.3.72 if it matters
yikes. i had to add an explicit dep on
org.jetbrains.kotlinx:kotlinx-coroutines-core
, ktor was bringing in 1.3.4 transitively 😞
👍 1
and for whatever reason, despite the class being in coroutines-core-common, it was picking up the 1.3.4 version 😕
ah, because it was in
commonMain
but the ktor dep was in
androidMain
so that got picked up first
3 Views