gpt4 book ai didi

安卓工作室 org.gradle.api.GradleException

转载 作者:搜寻专家 更新时间:2023-11-01 08:55:15 25 4
gpt4 key购买 nike

我在构建其中一项任务时遇到错误。即使我检查了错误消息,我也找不到解决方法。你可以帮帮我吗?

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.6.0_35,daemonRegistryDir=C:\Users\Victoria.gradle\daemon,pid=2992,idleTimeout=null,daemonOpts=,-Dfile.encoding=x-windows-949]
Actual: DefaultDaemonContext[uid=787a77a8-0451-4958-a4dc-00338f345b2e,javaHome=C:\Program Files\Java\jdk1.6.0_35,daemonRegistryDir=C:\Users\Victoria.gradle\daemon,pid=1196,idleTimeout=60000,daemonOpts=-Dfile.encoding=x-windows-949]
at org.jetbrains.plugins.gradle.service.project.GradleExecutionHelper.execute(GradleExecutionHelper.java:168)
....
org.gradle.tooling.GradleConnectionException: Could not execute build using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.7-bin.zip'.
at org.gradle.tooling.internal.consumer.ResultHandlerAdapter.onFailure(ResultHandlerAdapter.java:55) ....
at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:152)

Caused by: org.gradle.api.GradleException: 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.6.0_35,daemonRegistryDir=C:\Users\Victoria.gradle\daemon,pid=2992,idleTimeout=null,daemonOpts=,-Dfile.encoding=x-windows-949] Actual: DefaultDaemonContext[uid=787a77a8-0451-4958-a4dc-00338f345b2e,javaHome=C:\Program Files\Java\jdk1.6.0_35,daemonRegistryDir=C:\Users\Victoria.gradle\daemon,pid=1196,idleTimeout=60000,daemonOpts=-Dfile.encoding=x-windows-949]

at org.gradle.launcher.daemon.client.DefaultDaemonConnector.connectToDaemonWithId(DefaultDaemonConnector.java:120)

最佳答案

我自己解决了这个问题。

我将 JAVA_HOME 路径从 jdk 1.7 更改为 jdk 1.6。

关于安卓工作室 org.gradle.api.GradleException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19468793/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com