Gradle sync failed: The first result from the daemon was empty. Most likely the process died immedia
AndroidStudio Gradle error: Gradle sync failed: The first result from the daemon was empty. Most likely the process died immediately after connection.
Solution: dos window input jps: view java process.
The tskill command kills the GradleDaemon process and finally succeeds in re-grading
Found a foreigner solution:
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
Restart AstudioSuccess(此时新建项目会成功,不过以前由于这个原因创建的项目不会发生变化)
已知(网上看到):
1、Gradle Daemon简介
Gradle Daemon是Gradle的守护进程,使用守护进程的目的是改善Gradle的启动和执行时间。
2、使用Gradle Daemon的好处
在Android Studio中使用Gradle Daemon,可以减少没启动Java虚拟机的初始化时间、提供Android Studio程序的构建效率以及缓存Android Studio的构建信息等优点。
3 开启Gradle Daemon的方法
使用Android Studio的“Android”方式显示项目文件,之后选择“Gradle Scripts->gradle.properties”,在右侧的编辑区中修改gradle.properties文件,添加如下代码
org.gradle.daemon=true(我并不知道我的 daemon是否开启,因为我删除之后就可以创建项目了,所以我没把代码添加进去,好想试试可不可以啦)

浙公网安备 33010602011771号