Alen Kirm
02/07/2022, 4:56 PMKtor 1.6.7 and Coroutines 1.5.1-new-mm-dev2 but ./gradlew <module>:compileKotlinMetadata gradle tasks are failing.Mitchell Syer
02/07/2022, 5:01 PM1.6.0 comes with support for the new mm, so no need for 1.5.1-new-mm-dev2hfhbd
02/07/2022, 5:39 PM1.6.7 and coroutines 1.6.0-native-mt with
kotlin.native.binary.memoryModel=experimental
kotlin.native.binary.freezing=disabledPaul Weber
02/07/2022, 6:19 PM1.6.0 coroutines.
I’m using 1.5.2-native-mt still. Otherwise same as @hfhbdMitchell Syer
02/07/2022, 6:21 PMAlen Kirm
02/07/2022, 6:41 PMCould not find io.ktor:ktor-client-android:1.6.2-native-mm-eap-196.Mitchell Syer
02/07/2022, 6:41 PMAlen Kirm
02/07/2022, 6:52 PM./gradlew umbrellaModule:assembleXCFramework fails with:
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.
Any idea? 😕Mitchell Syer
02/07/2022, 6:56 PMhfhbd
02/07/2022, 6:57 PM1.6.0 is not yet supported with ktor, only 1.6.0-native-mt.
a) use ktor 1.6.2-native-mm-eap-196 and coroutines 1.5.1-new-mm-dev2
b) wait for the next beta of ktor 2.0.0-beta2 and use coroutines 1.6.0
c) use ktor 1.6.7 and coroutines 1.6.0-native-mtAlen Kirm
02/07/2022, 7:25 PMModule "io.ktor:ktor-network" has a reference to symbol kotlinx.coroutines/SingleThreadDispatcher|null[0] error using (C) versions above 🤷♂️hfhbd
02/07/2022, 7:32 PMAlen Kirm
02/07/2022, 7:41 PM"ktor-cio" to "io.ktor:ktor-client-cio:$ktorVersion",
"ktor-core" to "io.ktor:ktor-client-core:$ktorVersion",
and coroutines. Tried 1.6.0-native-mt but no luck. Only 1.5.1-new-mm-dev2 seem to be working with Ktor 1.6.7 but in this case, compileKotlinMetadata gradle task fails 😕 In case of 1.6.7 and 1.6.0-native-mt, there is Module "io.ktor:ktor-network" has a reference to symbol kotlinx.coroutines/SingleThreadDispatcher|null[0] error and linkDebugFrameworkIosArm64 gradle task fails 🤷♂️ 😞hfhbd
02/07/2022, 7:42 PMAlen Kirm
02/07/2022, 7:43 PMimplementation inside commonMain dependencies yes, and this module is then exported inside iOS umbrella frameworkAlen Kirm
02/07/2022, 7:51 PMKtor 1.6.7 and Coroutines 1.5.1-new-mm-dev2, gradle task moduleB:compileKotlinMetadata fails with error:
Execution failed for task ':moduleB:compileKotlinMetadata'.
> Error while evaluating property 'filteredArgumentsMap' of task ':moduleB:compileKotlinMetadata'
> Could not resolve all files for configuration ':moduleB:metadataCompileClasspath'.
> Could not find org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.1-new-mm-dev2.
Required by:
project :moduleB > project :moduleA
So we have Umbrella module, which exports moduleA and moduleB. Also moduleB has dependency on moduleA.Sam
02/07/2022, 8:36 PMAlen Kirm
02/08/2022, 8:29 AMAlen Kirm
02/10/2022, 1:59 PMKtor 2.0.0-eap-317 and Coroutines 1.6.0-native-mt.
Reference: https://youtrack.jetbrains.com/issue/KT-51145
Thank you all!