Z
Z
zhogar2016-11-28 12:00:39
IDE
zhogar, 2016-11-28 12:00:39

How to fix error in IntelliJ IDEA 2016.3?

Updated IntelliJ IDEA to version 2016.3, errors rained down.
I commented out the line org.gradle.jvmargs=-Xmx1536min gradle.properties, some of the errors were gone, but this one remained:

Gradle sync failed: The newly created daemon process has a different context than expected.
It won't be possible to reconnect to this daemon. Context mismatch:
Java home is different.
Wanted: DefaultDaemonContext[uid=null,javaHome=C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2016.3\jre,daemonRegistryDir=C:\Users\Admin\.gradle\daemon,pid=5336,idleTimeout=null,daemonOpts= -XX:MaxPermSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=windows-1251,-Duser.country=RU,-Duser.language=ru,-Duser.variant]
Actual: DefaultDaemonContext[uid=5ba9202e-aef4-44bc-835a-0fe9eef55258,javaHome=C:\Java\jdk1.8.0_111,daemonRegistryDir=C:\Users\Admin\.gradle\daemon,pid=4928,idleTimeout=60000, daemonOpts=-XX:MaxPermSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=windows-1251,-Duser.country=RU,-Duser.language=ru,-Duser.variant]
Consult IDE log for more details (Help | Show Log)

There are suggestions that something is with the environment variables, but I did not change anything, i.e. deleted the old version of the IDE (registry and temporary files cleaned) and installed a new one.
Anyone have any guesses as to what it might be?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Z
zhogar, 2016-11-29
@zhogar

Removing the jre directory from C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2016.3 helped, but I don't think it's the best option.

A
Alexander, 2016-11-28
@NeiroNx

Java home is different
I think everything is clear here.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question