hellman
03/06/2025, 6:07 PMjvm("desktop")
target to my Compose Multiplatform app. I use KoinApplication
in my main.kt
for desktop, but when I try to run it I get this exception:
Exception in thread "main" java.lang.NoClassDefFoundError: org/koin/core/error/KoinAppAlreadyStartedException
at com.husqvarna.slc.ComposableSingletons$MainKt$lambda-2$1.invoke(main.kt:19)
at com.husqvarna.slc.ComposableSingletons$MainKt$lambda-2$1.invoke(main.kt:18)
I haven't been able to find any solutions online. Any suggestions?hellman
03/06/2025, 6:08 PMfun main() {
application(exitProcessOnExit = true) {
KoinApplication({
modules(<all my modules>)
}) {
Window(
onCloseRequest = ::exitApplication,
title = "My App",
) {
App()
}
}
}
}
arnaud.giuliani
03/07/2025, 8:09 AMhellman
03/07/2025, 8:12 AM4.1.0-Beta5
arnaud.giuliani
03/07/2025, 8:19 AMstartKoin
before or you use only KoinApplication?hellman
03/07/2025, 8:30 AMhellman
03/07/2025, 8:31 AMarnaud.giuliani
03/07/2025, 3:19 PMarnaud.giuliani
03/07/2025, 3:20 PMhellman
03/07/2025, 3:32 PM