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

Guilherme Germano Silva

03/06/2024, 1:19 AM
Guys, someone faced this error in desktop version?
Exception in thread "AWT-EventQueue-0" java.lang.IllegalStateException: Module with the Main dispatcher is missing. Add dependency providing the Main dispatcher, e.g. 'kotlinx-coroutines-android' and ensure it has the same version as 'kotlinx-coroutines-core'
I fixed, i put this dependencie on jvmMain
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-swing:1.8.0")
2 Views