问题描述
我想开始使用 Android Developer Studio 开发移动应用程序.我下载了带有 SDK 和 JAVA 要求的 Android Developer Studio.但是当我尝试启动我的项目时,出现错误:
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]
我还从互联网上查看了一些东西,并尝试从项目结构中更改 JDK 位置.但它对我不起作用.知道我做错了什么吗?
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?
推荐答案
我也遇到过这个问题,就我的情况而言,我使用的是 Intellij 15.06,解决我的问题就是进入目录,JAVA_HOME > jre > lib,将tool.jar重命名为tool.jar.bak,然后尝试启动一个项目或者再次导入一个项目,最后不要忘记将其重命名回 tool.jar.
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.
希望对您有所帮助.
这篇关于错误:“新创建的守护进程具有与预期不同的上下文"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!