Gradle sync failed: The first result from the daemon was empty. Most likely the process died immedia

AndroidStudio  Gradle时报错: Gradle sync failed: The first result from the daemon was empty. Most likely the process died immediately after connection.

解决办法:dos窗口输入jps :查看java进程。 
tskill命令kill掉 GradleDaemon进程,最后在重新gradle就能成功

查到一个老外的解决办法:

I solved the problem by doing the following:

  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

重启Astudio Success

无法下载gradle的决绝办法:
distributionUrl=file:///E:/AndroidStudio/.gradle/wrapper/dists/gradle-4.1-all/gradle-4.1-all.zip

猜你喜欢

转载自blog.csdn.net/irizhao/article/details/87921226