Intellij Idea log GradleConnectionException: Could not execute build using Gradle installation while building

五迷三道 提交于 2019-12-05 08:40:16

Check your JDK home path in Platform Settings.

In my case it had extra '/jre' suffix, which caused the same error as you described.

I don't know why the daemon tries to use Java from C:\Program Files (x86)\JetBrains\IntelliJ IDEA Community Edition 13.1.1\jre\jre (is there such directory) but the problem is likely related to JAVA_HOME env variable or org.gradle.java.home in gradle.properties. http://forums.gradle.org/gradle/topics/gradle_daemon_different_context can give you some hints how to solve the problem.

I was getting this error using JDK 1.7.0_71.

Reverting to using my old 1.7.0_60 fixed it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!