In my Android Studio project's java module,I used to code java's main method is OK,But when i convert it to Kotlin code ,like this :
fun main(args: Array<String>) {
println("i am kotlin")
}
When i executed it, the error happend:"error: can't find or load main class". I have tried to find some way to solve it ,for example:let the main method outside the class,But it does not work. I want to know whether it is bebcause that my configuration has some problems. When i use IntelliJ IDEA i build a kotlin project ,the main method is OK. so what is my problem in my Android studio's java module in kotlin code.