The newly created daemon process has a different context than expected

Posted 網絡蛀蟲

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了The newly created daemon process has a different context than expected相关的知识,希望对你有一定的参考价值。

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]

  

第一次用gradle也是第一次接触android项目,用svn导入项目结果出现了这样的错误,捣鼓了半天才找出原因,我遇到这个问题是因为我装了两个Java sdk

1.7和1.8 都在D盘

 

解决方案:在gradle.properties文件中加入org.gradle.java.home=D\\:\\\\Java\\\\jdk1.8.0_121(后面你们改成自己的jdk目录就好了)

以上是关于The newly created daemon process has a different context than expected的主要内容,如果未能解决你的问题,请参考以下文章

docker Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/

Cannot connect to the Docker daemon. Is the docker daemon running on this host

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?

Docker初次安装运行出错:Cannot connect to the Docker daemon at ***/docker.sock. Is the docker daemon running?

Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?(代码

Docker未启动错误:Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon