IntelliJ Gradle Plugin: The supplied javaHome seems to be invalid

前端 未结 14 701
暗喜
暗喜 2020-12-23 08:41

Similar to:
- Intellij 14 the supplied javaHome seems to be invalid
- Android Studio - supplied javaHome is not a valid folder

However, I am trying to use

14条回答
  •  春和景丽
    2020-12-23 09:17

    On OSX 10.12.x, Intellij v16.3, I had to go into:

    1. ~/Library/Preferences/IntelliJIdea2016.3
    2. Create a file called: idea.jdk
    3. Add the following to it: /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk (or whatever JDK you have installed

    This was a fix I've had to do in v16 of Intellij found on jetbrains site. At one point I had to remove it, on the upgrade to 16.3 I had to add it back. https://intellij-support.jetbrains.com/hc/en-us/articles/206544879-Selecting-the-JDK-version-the-IDE-will-run-under

提交回复
热议问题