简体   繁体   English

无法在 Intellije 中运行 kotlin

[英]Can't run kotlin in Intellije

https://i.stack.imgur.com/tE6Rq.png https://i.stack.imgur.com/tE6Rq.png

I am new in Kotlin.我是 Kotlin 的新手。 This is my first project and I am having problem.这是我的第一个项目,我遇到了问题。 I don't understand what to do now.我不明白现在该怎么办。 It'll be really helpful for me if anyone can solve this issue.如果有人能解决这个问题,那对我真的很有帮助。 Thanks in advance.提前致谢。 Please look at the photo attached请看附上的照片

Here are the steps to kickstart a kotlin-console-application, reference from https://www.jetbrains.com/help/idea/create-your-first-kotlin-app.html#dd1e8921以下是启动 kotlin-console-application 的步骤,参考https://www.jetbrains.com/help/idea/create-your-first-kotlin-app.html#dd1e8921

  1. From the main menu, select File |从主菜单中,select 文件 | New |新 | Project.项目。
  2. In the left-hand menu, select Kotlin.在左侧菜单中,select Kotlin。
  3. Give your project a name and select Console Application as Project Template.为您的项目命名,并将 select 控制台应用程序作为项目模板。 In Project JDK select a JDK (version 8 or later is recommended).在项目 JDK select 中使用 JDK(建议使用 8 或更高版本)。
  4. New Kotlin project with the Gradle build system with Kotlin DSL.新的 Kotlin 项目与 Gradle 构建系统与 Kotlin DSL。 Click Next, then Finish.单击下一步,然后单击完成。

If you cannot see a run option, maybe try to build the project once.如果您看不到运行选项,则可以尝试构建一次项目。

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

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