I've just created an empty project in IntelliJ Ultimate 2020.1, using Gradle and Kotlin build script. But IntelliJ isn't recognising my main method - no green arrow. Nor can it find it from "Add Configuration..."
Copy code
class Launcher {
fun main(args: Array<String>) {
println("Hello world")
}
}
v79
05/22/2020, 6:39 AM
IntelliJ didn't tab-complete either when creating
main
- I had to write it all out by hand.
m
mzgreen
05/22/2020, 6:59 AM
try to write
psvm
somewhere in the file outside of the class
mzgreen
05/22/2020, 6:59 AM
intellij should suggest you a quick action, tap enter and it’ll generate the main function