Thomas
12/23/2021, 5:31 PM2.0.0-beta-1
with kotlinx.coroutines 1.6.0-native-mt
I get the following stack trace. When using kotlinx.coroutines 1.5.2-native-mt
with the same Ktor version there are no errors. Using Kotlin 1.6.10
. Any idea what is going wrong?
> Task :common:root:linkCommonDebugFrameworkIosArm64
e: Module "io.ktor:ktor-network" has a reference to symbol kotlinx.coroutines/SingleThreadDispatcher|null[0]. Neither the module itself nor its dependencies contain such declaration.
This could happen if the required dependency is missing in the project. Or if there is a dependency of "io.ktor:ktor-network" that has a different version in the project than the version that "io.ktor:ktor-network" was initially compiled with. Please check that the project configuration is correct and has consistent versions of all required dependencies.
Thomas
12/23/2021, 5:32 PMShowing Recent Issues
> Task :common:root:linkCommonDebugFrameworkIosArm64
e: Module "io.ktor:ktor-network" has a reference to symbol kotlinx.coroutines/SingleThreadDispatcher|null[0]. Neither the module itself nor its dependencies contain such declaration.
This could happen if the required dependency is missing in the project. Or if there is a dependency of "io.ktor:ktor-network" that has a different version in the project than the version that "io.ktor:ktor-network" was initially compiled with. Please check that the project configuration is correct and has consistent versions of all required dependencies.
The list of "io.ktor:ktor-network" dependencies that may lead to conflicts:
1. "io.ktor:ktor-io" (a library with unknown version)
2. "io.ktor:ktor-network-cinterop-network" (a library with unknown version)
3. "io.ktor:ktor-utils" (a library with unknown version)
4. "stdlib: 1.6.10" (was initially compiled with "stdlib: 1.6.0")
5. "org.jetbrains.kotlin.native.platform.CoreFoundation: 1.6.10" (was initially compiled with "org.jetbrains.kotlin.native.platform.CoreFoundation: 1.6.0")
6. "org.jetbrains.kotlin.native.platform.darwin: 1.6.10" (was initially compiled with "org.jetbrains.kotlin.native.platform.darwin: 1.6.0")
7. "org.jetbrains.kotlin.native.platform.iconv: 1.6.10" (was initially compiled with "org.jetbrains.kotlin.native.platform.iconv: 1.6.0")
8. "org.jetbrains.kotlin.native.platform.posix: 1.6.10" (was initially compiled with "org.jetbrains.kotlin.native.platform.posix: 1.6.0")
9. "org.jetbrains.kotlinx:atomicfu" (a library with unknown version)
10. "org.jetbrains.kotlinx:atomicfu-cinterop-interop" (a library with unknown version)
11. "org.jetbrains.kotlinx:kotlinx-coroutines-core" (a library with unknown version)
Project dependencies:
\--- io.ktor:ktor-network
^^^ This module requires symbol kotlinx.coroutines/SingleThreadDispatcher|null[0].
+--- io.ktor:ktor-io
| +--- stdlib: 1.6.0 -> 1.6.10
| +--- org.jetbrains.kotlin.native.platform.CoreFoundation: 1.6.0 -> 1.6.10
| | +--- stdlib: 1.6.10
| | +--- org.jetbrains.kotlin.native.platform.darwin: 1.6.10
| | | +--- stdlib: 1.6.10
| | | \--- org.jetbrains.kotlin.native.platform.posix: 1.6.10
| | | \--- stdlib: 1.6.10
| | \--- org.jetbrains.kotlin.native.platform.posix: 1.6.10 (*)
| +--- org.jetbrains.kotlin.native.platform.darwin: 1.6.0 -> 1.6.10 (*)
| +--- org.jetbrains.kotlin.native.platform.iconv: 1.6.0 -> 1.6.10
| | +--- stdlib: 1.6.10
| | \--- org.jetbrains.kotlin.native.platform.posix: 1.6.10 (*)
| +--- org.jetbrains.kotlin.native.platform.posix: 1.6.0 -> 1.6.10 (*)
| +--- org.jetbrains.kotlinx:atomicfu
| | +--- stdlib: 1.6.0 -> 1.6.10
| | +--- org.jetbrains.kotlin.native.platform.posix: 1.6.0 -> 1.6.10 (*)
| | \--- org.jetbrains.kotlinx:atomicfu-cinterop-interop
| | +--- stdlib: 1.6.0 -> 1.6.10
| | \--- org.jetbrains.kotlin.native.platform.posix: 1.6.0 -> 1.6.10 (*)
| +--- org.jetbrains.kotlinx:atomicfu-cinterop-interop (*)
| \--- org.jetbrains.kotlinx:kotlinx-coroutines-core
| +--- stdlib: 1.6.0 -> 1.6.10
| +--- org.jetbrains.kotlin.native.platform.CoreFoundation: 1.6.0 -> 1.6.10 (*)
| +--- org.jetbrains.kotlin.native.platform.darwin: 1.6.0 -> 1.6.10 (*)
| +--- org.jetbrains.kotlin.native.platform.posix: 1.6.0 -> 1.6.10 (*)
| +--- org.jetbrains.kotlinx:atomicfu (*)
| \--- org.jetbrains.kotlinx:atomicfu-cinterop-interop (*)
+--- io.ktor:ktor-network-cinterop-network
| +--- stdlib: 1.6.0 -> 1.6.10
| \--- org.jetbrains.kotlin.native.platform.posix: 1.6.0 -> 1.6.10 (*)
+--- io.ktor:ktor-utils
| +--- io.ktor:ktor-io (*)
| +--- stdlib: 1.6.0 -> 1.6.10
| +--- org.jetbrains.kotlin.native.platform.CoreFoundation: 1.6.0 -> 1.6.10 (*)
| +--- org.jetbrains.kotlin.native.platform.darwin: 1.6.0 -> 1.6.10 (*)
| +--- org.jetbrains.kotlin.native.platform.iconv: 1.6.0 -> 1.6.10 (*)
| +--- org.jetbrains.kotlin.native.platform.posix: 1.6.0 -> 1.6.10 (*)
| +--- org.jetbrains.kotlinx:atomicfu (*)
| +--- org.jetbrains.kotlinx:atomicfu-cinterop-interop (*)
| \--- org.jetbrains.kotlinx:kotlinx-coroutines-core (*)
+--- stdlib: 1.6.0 -> 1.6.10
+--- org.jetbrains.kotlin.native.platform.CoreFoundation: 1.6.0 -> 1.6.10 (*)
+--- org.jetbrains.kotlin.native.platform.darwin: 1.6.0 -> 1.6.10 (*)
+--- org.jetbrains.kotlin.native.platform.iconv: 1.6.0 -> 1.6.10 (*)
+--- org.jetbrains.kotlin.native.platform.posix: 1.6.0 -> 1.6.10 (*)
+--- org.jetbrains.kotlinx:atomicfu (*)
+--- org.jetbrains.kotlinx:atomicfu-cinterop-interop (*)
\--- org.jetbrains.kotlinx:kotlinx-coroutines-core (*)
(*) - dependencies omitted (listed previously)
> Task :common:root:linkCommonDebugFrameworkIosArm64 FAILED
rnett
12/23/2021, 6:42 PMThomas
12/23/2021, 7:00 PMThomas
12/23/2021, 7:01 PMJohn O'Reilly
12/23/2021, 7:12 PM2.0.0-beta-1
with Kotlinx Coroutines 1.6.0
and with new Kotlin/Native memory model enabled.....might perhaps be an option?John O'Reilly
12/23/2021, 7:13 PMThomas
12/23/2021, 7:17 PM1.6.0
but it failed with the same error. Still fails after adding the new MM stuff to gradle.properties, too.Thomas
12/23/2021, 7:18 PMJohn O'Reilly
12/23/2021, 9:46 PMThomas
12/23/2021, 9:55 PMJohn O'Reilly
12/23/2021, 9:55 PMJohn O'Reilly
12/23/2021, 9:56 PMgradle.properties
kotlin.native.binary.memoryModel=experimental
Thomas
12/23/2021, 9:56 PMThomas
12/23/2021, 9:56 PMJohn O'Reilly
12/23/2021, 9:57 PMThomas
12/23/2021, 9:58 PMJohn O'Reilly
12/23/2021, 9:59 PMisForce
like following
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:${Versions.kotlinCoroutines}") {
isForce = true
}
Thomas
12/23/2021, 9:59 PMJohn O'Reilly
12/23/2021, 9:59 PMThomas
12/23/2021, 9:59 PMThomas
12/23/2021, 10:00 PMsaket
01/07/2022, 8:25 PMmacosArm64
whereas PeopleInSpace is still using macosX64
.Thomas
01/07/2022, 8:28 PMThomas
01/07/2022, 8:28 PMktor-network
? Because that’s where the error comes from for me as you can see in the error logs.saket
01/07/2022, 8:34 PMktor-server-cio
which is in turn dependent on ktor-network
saket
01/07/2022, 8:34 PMsaket
01/07/2022, 8:36 PMThomas
01/07/2022, 8:40 PM1.5.2-native-mt
which seems to work fine.Thomas
01/07/2022, 8:40 PMThomas
01/07/2022, 8:41 PMThomas
01/07/2022, 8:42 PMsaket
01/07/2022, 9:26 PM1.5.2-native-mt
seems to be working fine. I'll continue using this, thank you!John O'Reilly
01/11/2022, 7:25 AMhfhbd
01/11/2022, 8:33 AMThomas
01/11/2022, 11:23 AMThomas
01/11/2022, 11:25 AMJohn O'Reilly
01/11/2022, 11:26 AMconst val kotlinCoroutines = "1.6.0"
const val ktor = "2.0.0-beta-1"
Thomas
01/11/2022, 11:27 AMJohn O'Reilly
01/11/2022, 11:30 AMktor-network
to that project and see if I can reproducehfhbd
01/11/2022, 1:10 PMJohn O'Reilly
01/12/2022, 7:53 AM