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:
- 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
重启Astudio Success
无法下载gradle的决绝办法:
distributionUrl=file:///E:/AndroidStudio/.gradle/wrapper/dists/gradle-4.1-all/gradle-4.1-all.zip