简体   繁体   中英

Run/Debug are not working in IntelliJ IDEA

I've installed an IntelliJ IDEA Community Edition 2018.2.4 x64. I've cloned a Project from Git (I learn a course on the "coursera").

The first task was: "Click the green arrow at the left side from the code.." I haven't any arrows. I can't run it from main menu, the programm ask me about configuration. What exactly I need to do?

  • "Run" is not available. 看这里
  • Asking about configurations. 看这里
  • Configuration's window. 看这里

The problem solved. It was fun.. The firewall blocked all functions of mavel,jdk and part of IDEA. Adding to exceptions didn't help. Switching off the Firewall - helped. Strange were: Empty repositories of maven, the same settings as at the another computers where it have worked.
Now everything is working.

You have to create a new configuration for Kotlin and specify the main class which would be lesson1.task1.SimpleKt . Then the disabled arrow will turn green and be clickable.

If you want to run the other examples you have to create a new configuration for each one since they all have their own .kt file with a main function.

Right Click on Project Folder->Module Settings -> Add src folder in sources in the following way

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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