Kotlin unresolved reference in IntelliJ

后端 未结 20 1466
太阳男子
太阳男子 2020-12-01 08:47

I started off with the tutorial for learning Kotlin in IntelliJ.When I tried running the example i.e

fun main(args: Array) {
 prin         


        
20条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-01 09:30

    Another thing I would like to add is that you need to select View -> Tool Windows -> Gradle before you can run the project using the Gradle.

    If using the Gradle the project builds and runs normally but using the IntelliJ it doesn't, then this can solve the matter.

提交回复
热议问题