reactormonk
07/15/2025, 3:00 PMMainKt could not be found
. Creating class MainKt { fun main() { ... } }
gives me a duplicate class MainKt
🤔Stephan Schröder
07/15/2025, 5:05 PMreactormonk
07/15/2025, 5:17 PM@JvmStatic
etc.chrisjenx
07/15/2025, 9:30 PMMain.kt
file should contain:
import ....
fun main() {
// start code here
}
Clicking the run arrow next to the function should run everything fine, unless you changed something wierd in the gradle configgildor
07/16/2025, 5:12 AMmain()
compiler will create class MainKt for it
So looks that your config looks for MainKt
class (this how it usually configured for Gradle), what you need to do is follow Chris' suggestionreactormonk
07/16/2025, 8:08 AMClicking the run arrow next to the function should run everything fine, unless you changed something wierd in the gradle configNah, got the error straight out of the gate
reactormonk
07/16/2025, 8:08 AM2025.1.3
gildor
07/16/2025, 8:08 AMreactormonk
07/16/2025, 8:09 AMMainKt could not be found
reactormonk
07/16/2025, 8:10 AMgildor
07/16/2025, 8:10 AM