Kotlin unresolved reference in IntelliJ

后端 未结 20 1414
太阳男子
太阳男子 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:16

    A possible solution for standalone Kotlin projects is to include Kotlin standard libs explicitliy inside the root project.

    To do that in IntelliJ IDEA:

    • press Ctrl+Shift+A (Search actions or options)
    • type in "Configure kotlin in project" and let it include standard libs for you

提交回复
热议问题