Gradle同步失败:守护程序的第一个结果为空.连接后很可能该进程立即死亡
问题描述:
我最近下载了一个Android Studio,并将其安装在我的PC上.但是,当我尝试建立我的第一个项目"hello world"时,总是会出现以下内容:
I just recently downloaded an Android Studio and installed it on my PC. But When I try to set up my first project "hello world", it always brings up the following:
Gradle同步失败:守护程序的第一个结果为空.连接后,该进程很可能立即死亡.
请查阅IDE日志以获取更多详细信息(帮助" |显示日志")
Gradle sync failed: The first result from the daemon was empty. Most likely the process died immediately after connection.
Consult IDE log for more details (Help | Show Log)
答
我通过以下操作解决了该问题:
I solved the problem by doing the following:
- 转到
C:/Users/.../.gradle/daemon/
- 打开
daemon
中的任何文件夹
- 查找此文件
registry.bin.lock
- 删除它
- 现在在Android Studio中同步gradle,您的问题将得到解决
- go to
C:/Users/.../.gradle/daemon/
- open any of the folders in
daemon
- look for this file
registry.bin.lock
- delete it
- now go sync the gradle in Android Studio and your problem will be solved
成功