I have KMP project with macOS/iOS/Android/Windows ...
# multiplatform
a
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
@aleksey.tomin were you able to resolve this issue?
a
Now I don’t work with KMP/KMM