Hello, why do i get “Caused by: java.lang.NoClassD...
# compose-desktop
p
Hello, why do i get “Caused by: java.lang.NoClassDefFoundError: android/os/Looper” when trying to use coroutine on a Desktop target The only dependency in my project in shared module is implementation(“org.jetbrains.kotlinxkotlinx coroutines core1.7.1") The code works fine in Android but crashes in Desktop
a
Looper is an Android thing. You must have some dependency on Android it.
p
@Alexander Maryanovsky I didn’t have any android dependency , but after adding org.jetbrains.kotlinx:kotlinx-coroutines-swing it got fixed But this was kinda hard to find as it is hardly mentioned anywhere i guess
d
I think it is mentioned in the GitHub Wiki
188 Views