Daniele B
02/28/2023, 5:31 PMimplementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
on Android, the app works without the need of adding the android-specific coroutine package on androinMain
on Desktop, it gives me this error:
Module with the Main dispatcher is missing. Add dependency providing the Main dispatcher, e.g. 'kotlin-coroutine-android' and ensure it has the same version as 'kotlin-coroutine-core'
what is the reason why on Android, the target specific package is not needed?Alexander Pozdniakov
02/28/2023, 5:49 PMkotlinx-coroutines-android
so you have it implicitly in the project. However this is not the case for the desktop part of a project.Daniele B
02/28/2023, 5:50 PMfranztesca
02/28/2023, 11:47 PM