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

后端 未结 7 1321
轻奢々
轻奢々 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:04

    For MacOS this worked for me without the need to hardcode a particular Java version:

    launchctl setenv JAVA_HOME "$(jenv javahome)"
    

提交回复
热议问题