intellij idea gradle java home问题

-Jacen- 发布于 2017/03/15 19:33
阅读 793
收藏 0

使用intellij idea创建android项目,gradle project sync failed,提示:java home 不一致。我设置都一样的。环境变量和project structure里面设置的jdk都是同一个目录下的jdk。

具体报错信息如下:

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=G:\IDE\IntelliJ IDEA\jre,daemonRegistryDir=C:\Users\Jacen\.gradle\daemon,pid=33876,idleTimeout=null,daemonOpts=-Xmx1536m,-Dfile.encoding=GBK,-Duser.country=CN,-Duser.language=zh,-Duser.variant]
        Actual: DefaultDaemonContext[uid=13ef546f-351f-4df2-b52a-0d886c6a6221,javaHome=G:\IDE\Java\jdk1.8.0_77,daemonRegistryDir=C:\Users\Jacen\.gradle\daemon,pid=37972,idleTimeout=60000,daemonOpts=-Xmx1536m,-Dfile.encoding=GBK,-Duser.country=CN,-Duser.language=zh,-Duser.variant]
        Consult IDE log for more details (Help | Show Log)

 

加载中
返回顶部
顶部