When migrating my MP project (android+ios) to kotl...
# coroutines
h
When migrating my MP project (android+ios) to kotlin 1.4 I ran into a problem with publishing that seems to be related to coroutines
1.3.9
(the problem goes away if I use
1.3.9-native-mt
). The project has the following dependencies:
Copy code
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9"
implementation "io.ktor:ktor-client-core:1.4.0"
It's the task
compileIosMainKotlinMetadata
that fails with the following error:
e: Could not find "kotlinx-coroutines-core_concurrentMain"
Anyone else seen this?
l
This is expected. concurrentMain is only there in the native-mt version, and new ktor depends on it.
h
gotcha. could not find any doc about this unfortunately
l
native-mt is still being polished
If it didn't need it, it'd be the default
h
I experience same error while migrating kotlin to 1.4 but the problem doesn’t go away with 1.3.9-native-mt on multiplatform library. when I rollback ktor to 1.3.2. ktor classes isn’t recognized. is there other solution or workaround?
FYI, I found the reason and reported to sqldelight https://github.com/cashapp/sqldelight/issues/1917
r
@hultgren have you managed to solve this issue? I am facing with exact same problem at the moment.
h
You have to use the
native-mt
branch of coroutines