Intellij Idea: Importing Gradle project - getting JAVA_HOME not defined yet

后端 未结 7 1231
轻奢々
轻奢々 2021-01-29 17:37

Intellij Idea 14.1.4 Mac OS X Yosemite 10.10.3 and later.

From the IDE:

Import Project ->
(Chosen directory to import) ->
Import project from exter         


        
相关标签:
7条回答
  • 2021-01-29 18:24

    You need to setup a SDK for Java projects, like @rizzletang said, but you don't need to create a new project, you can do it from the Welcome screen.

    On the bottom right, select Configure > Project Defaults > Project Structure: enter image description here

    Picking the Project tab on the left will show that you have no SDK selected:

    enter image description here

    Just click the New... button on the right hand side of the dropdown and point it to your JDK. After that, you can go back to the import screen and it should just show up.

    0 讨论(0)
提交回复
热议问题