Mgj
07/03/2020, 8:06 AMgildor
07/03/2020, 8:13 AMMgj
07/03/2020, 8:15 AMgildor
07/03/2020, 8:19 AMMgj
07/03/2020, 8:20 AMsourceSets {
def coroutines_version = "1.3.7"
commonMain {
dependencies {
implementation(kotlin('stdlib-common'))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version")
// ...
}
}
"org.jetbrains.kotlinx:kotlinx-coroutines-core-common:$coroutines_version"
as a dependency (note -common
)gildor
07/03/2020, 2:02 PMMgj
07/03/2020, 3:30 PMgildor
07/03/2020, 3:36 PMedenman
07/03/2020, 6:26 PMMutableStateFlow
in my common code fwiwcoroutines-core
and coroutines-core-common
specified in my common module deps. my issue was some transitive dep was screwing up the version # iircgildor
07/04/2020, 2:36 AMlouiscad
07/04/2020, 8:37 AMbuild.gradle
snippet, I'm not seeing the dependency on kotlinx coroutines common for commonMain, you specified the JVM artifact (note: this becomes correct starting Kotlin 1.4-M2 because these artifacts start being Multiplatform publications)gildor
07/04/2020, 9:08 AMlouiscad
07/04/2020, 9:09 AM-native
prefixed artifacts.gildor
07/04/2020, 9:18 AMlouiscad
07/04/2020, 9:20 AMMgj
07/04/2020, 10:01 AM