【问题标题】:Kotlin - cant run "hello world" in intellijKotlin - 无法在 intellij 中运行“hello world”
【发布时间】:2016-02-23 20:39:06
【问题描述】:

我正在尝试通过此处的 maven 指令配置 Kotlin 项目:https://kotlinlang.org/docs/reference/using-maven.html#KotlinBuildTools-Maven intellij。
pom.xml 似乎是由 intellij 自动配置的,但我的 hello world 文件不断收到错误“kotlin not configured”。
intellij 编译器出现错误:“Kotlin: Unresolved reference: println”。
我正在使用 intellij 15.0.3 和 kotlin 1.0.0

【问题讨论】:

    标签: maven intellij-idea kotlin


    【解决方案1】:

    在这里找到答案:https://discuss.kotlinlang.org/t/intellij-kotlin-project-screw-up/597

    项目似乎以某种方式被破坏了。 intellij 建议在项目结构中修复该问题。

    【讨论】:

      猜你喜欢
      • 2014-09-25
      • 2018-08-18
      • 1970-01-01
      • 1970-01-01
      • 2020-08-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-11-18
      相关资源
      最近更新 更多