简体   繁体   English

Kotlin - 不能在intellij中运行“hello world”

[英]Kotlin - cant run “hello world” in intellij

I am trying to configure Kotlin project by the maven instructions from here: https://kotlinlang.org/docs/reference/using-maven.html#KotlinBuildTools-Maven in intellij. 我试图通过这里的maven说明配置Kotlin项目: https ://kotlinlang.org/docs/reference/using-maven.html#KotlinBuildTools-Maven in intellij。
The pom.xml seems to be configured automatically by intellij but I keep getting the error "kotlin not configured" for my hello world file. pom.xml似乎是由intellij自动配置的,但我不断为我的hello world文件收到错误“kotlin not configured”。
The intellij compiler has the error: "Kotlin: Unresolved reference: println". intellij编译器有错误:“Kotlin:Unresolved reference:println”。
I am using intellij 15.0.3 and kotlin 1.0.0 我正在使用intellij 15.0.3和kotlin 1.0.0

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

It seems the project was broken somehow. 似乎项目以某种方式被打破了。 intellij suggested a fix in project structure that fix the issue. intellij建议修复项目结构以解决问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM