[英]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上守护程序的用户指南章节中的输入图像说明 。
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.