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

aleksey.tomin

03/02/2021, 8:09 AM
I have KMP project with macOS/iOS/Android/Windows targets. In common code I use
kotlinx.coroutines.newSingleThreadContext
Build for the all targets done without error. But if I call
gradle compileKotlinMetadata
I see error
Copy code
> Task :compileKotlinMetadata FAILED
e: <...>.kt: (28, 9): Unresolved reference: newSingleThreadContext
How can I fix it?
I have to create expected fun in common code and two actual in android and native. Is it a bug or feature?
a

Amritansh

09/20/2021, 7:27 PM
@aleksey.tomin were you able to resolve this issue?
a

aleksey.tomin

09/21/2021, 4:22 AM
Now I don’t work with KMP/KMM
7 Views