Gradle同步失败:守护程序的第一个结果为空.连接后很可能该进程立即死亡

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:

  1. 转到C:/Users/.../.gradle/daemon/
  2. 打开daemon
  3. 中的任何文件夹
  4. 查找此文件registry.bin.lock
  5. 删除它
  6. 现在在Android Studio中同步gradle,您的问题将得到解决
  1. go to C:/Users/.../.gradle/daemon/
  2. open any of the folders in daemon
  3. look for this file registry.bin.lock
  4. delete it
  5. now go sync the gradle in Android Studio and your problem will be solved

成功