Closed fluttertutorialin closed 10 months ago
Exception in thread "main" java.lang.NoClassDefFoundError: cafe/adriel/voyager/core/model/StateScreenModel
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(Unknown Source)
at java.base/java.security.SecureClassLoader.defineClass(Unknown Source)
at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(Unknown Source)
at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(Unknown Source)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(Unknown Source)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.defineClass1(Native Method)
at java.base/java.lang.ClassLoader.defineClass(Unknown Source)
at java.base/java.security.SecureClassLoader.defineClass(Unknown Source)
at java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(Unknown Source)
at java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(Unknown Source)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(Unknown Source)
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(Unknown Source)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(Unknown Source)
at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
at di.ScreenModelModuleKt$ScreenModelModule$1.invoke(ScreenModelModule.kt:50)
at di.ScreenModelModuleKt$ScreenModelModule$1.invoke(ScreenModelModule.kt:14)
at org.koin.dsl.ModuleDSLKt.module(ModuleDSL.kt:44)
at org.koin.dsl.ModuleDSLKt.module$default(ModuleDSL.kt:42)
at di.ScreenModelModuleKt.
Please ensure that you have the correct path for either the 'dashboard app' or the 'support app.' Also, don't forget to specify the Main Class (MainKt), which Android Studio will detect by default after selecting the appropriate classpath module. Please let me know if you have any problem.
Same problem
try this solution to run desktop apps 1 - Add new configuration 2 - select Gradle 3 - add needed configuration as folows it's neccessary to add this line at run ( jvmRun -DmainClass=MainKt --quiet )
Solve the problem.
Please share the steps on how to run the desktop app.