简体   繁体   English

Android Studio Gradle同步失败:无法启动守护程序进程

[英]Android Studio Gradle sync failed: Unable to start the daemon process

I open Android studio after several weeks and I see this error in messages View: 几周后我打开Android工作室,我在消息中看到此错误查看:

Error:Unable to start the daemon process. 错误:无法启动守护程序进程。 This problem might be caused by incorrect configuration of the daemon. 此问题可能是由守护程序的错误配置引起的。 For example, an unrecognized jvm option is used. 例如,使用无法识别的jvm选项。 Please refer to the enter image description here user guide chapter on the daemon at https://docs.gradle.org/4.1/userguide/gradle_daemon.html 请参阅https://docs.gradle.org/4.1/userguide/gradle_daemon.html上守护程序的用户指南章节中的输入图像说明

Please read the following process output to find out more: 请阅读以下流程输出以了解更多信息:

  1. First I do other instructions in stackoverflow but there's no progression: 首先,我在stackoverflow中执行其他指令,但没有进展:
  2. Then I removed C:\\Users\\Users.gradle directory I changed heap size in gradle.properties and I Added this line at end of file org.gradle.jvmargs=-Xmx1024m but no promotion. 然后我删除了C:\\ Users \\ Users.gradle目录我在gradle.properties中更改了堆大小,我在文件末尾添加了这行org.gradle.jvmargs = -Xmx1024m但没有提升。

what can I do for it? 我能做些什么呢? thank's alot. 非常感谢。

这是我的错误

Check the logs in ~/.gradle/daemon/<your-gradle-version> to get more insight about the problem, in my case it was java.net.BindException: Address already in use: bind exception. 检查~/.gradle/daemon/<your-gradle-version>的日志以获得有关该问题的更多信息,在我的例子中是java.net.BindException: Address already in use: bind异常。 I was using my computer as a hotspot for my phone and I realized that somehow it was preventing the deamon from binding, disabling the hotspot solved the problem for me. 我正在使用我的计算机作为手机的热点,我意识到它以某种方式阻止了守护程序绑定,禁用热点解决了我的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM