Error: "The newly created daemon process has a different context than expected"
10,141
I have also encountered this problem, for my case, I am using Intellij 15.06, what solved my problem is just go to the directory, JAVA_HOME > jre > lib, and rename the tool.jar to tool.jar.bak, and then try to start a project or import a project again, at last, do not forget to rename it back to tool.jar.
Hope this will help you.
Author by
mustafa can helvacikara
Updated on June 16, 2022Comments
-
mustafa can helvacikara almost 2 years
I would like to start developing mobile applications with Android Developer Studio. I downloaded Android Developer Studio with SDK and JAVA requirements. But when I try to start my project, I get an error:
Error: The newly created daemon process has a different context than expected. It won't be possible to reconnect to this daemon. Context mismatch: At least one daemon option is different. Wanted: DefaultDaemonContext[uid=null,javaHome=C:\Program Files\Java\jdk1.8.0_31,daemonRegistryDir=C:\Users\mustafac\.gradle\daemon,pid=9040,idleTimeout=null,daemonOpts=-XX:MaxPermSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=windows-1254,-Duser.country=TR,-Duser.language=tr,-Duser.variant] Actual: DefaultDaemonContext[uid=89bee64b-dc23-47f4-a5f6-20fae6341e82,javaHome=C:\Program Files\Java\jdk1.8.0_31,daemonRegistryDir=C:\Users\mustafac\.gradle\daemon,pid=3128,idleTimeout=10800000,daemonOpts=-XX:MaxPermSize=256m,-XX:+HeapDumpOnOutOfMemoryError,-Xmx1024m,-Dfile.encoding=windows-1254,-Duser.country=TR,-Duser.language=tr,-Duser.variant,http://www.netmahal.com/?bd=hp&oem=hprotect&uid=WDCXWD10EZEX-08RKKA0_WD-WMC1S139379893798&version=&pid=3662073653&cs=6d6fd47ad2184eae96bfc61874ec42f4]
I also checked sth from internet and I tried to change JDK Location from project structure. But it didn't work for me. Any idea what I'm doing wrong?
-
Lance Clark over 6 yearsThis totally fixed my problem. Do you have any idea why this works?
-
Cilan over 6 years@LanceClark needs to use jdk version i think
-
Jesse over 3 yearsSaved my life, do you know the root cause?