IntelliJ Gradle Plugin: The supplied javaHome seems to be invalid
IDEA comes in 2 versions: 32bit and 64bit.
Your JAVA_HOME
is 64bit version of Java so you have to run 64bit version of the IDEA ...\IntelliJ\IntelliJ IDEA Community Edition 14.1.2\bin\idea64.exe
.
Otherwise, you can provide 32bit JDK or tweak the behaviour with IDEA settingshttps://intellij-support.jetbrains.com/hc/en-us/articles/206544879-Selecting-the-JDK-version-the-IDE-will-run-under
Try manually setting a JDK from File > Project Structure > Project > Project SDK
, Then rebuild.