Giorgi
05/03/2024, 12:08 PMError: Could not find or load main class MainKt
Project has src
folder and shared
module. When I press green button next to main function it shows error that it can not find it, but It works if I delete shared
module.Giorgi
05/03/2024, 12:11 PMproduct: jvm/app
, then created main function and it worked. Later added shared
module with
product:
type: lib
platforms: [jvm, android, macosX64 ]
dependencies:
- org.jetbrains.kotlinx:kotlinx-datetime:0.4.0
test-dependencies:
- org.jetbrains.kotlin:kotlin-test:1.8.0
settings:
kotlin:
languageVersion: 1.8
jvm:
target: 17
and then it started showing error that it can not find Main functionAnton Prokhorov
05/03/2024, 12:49 PMshared
as a $PROJECT_DIR
, it's also strange that we have :shared:jvmRun
task, considering shared
as lib
product type
I gonna file issues in according youtracksGiorgi
05/03/2024, 2:14 PMjvmRun
from both modules.
Anyways, your workaround works...