Hi once again. I have added Amper to the project a...
# amper
g
Hi once again. I have added Amper to the project and now I get
Error: 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.
Here is project, I might push more stuff to it so here is the commit https://github.com/shalva97/overwatch-player-search-api/commit/f1409255799301cc2f569d9a89675d3d4e37c875 first, added module.yaml at root with
product: jvm/app
, then created main function and it worked. Later added
shared
module with
Copy code
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 function
a
Hi, thank you for the report As a workaround, for a while, you can run "run" Gradle command directly For some reason fleet considers
shared
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 youtracks
g
one small detail is that I am using Intellij. I just noticed that it is trying to run
jvmRun
from both modules. Anyways, your workaround works...
fleet 1