Gradle Daemon Android Studio:“无法启动守护进程" [英] Gradle Daemon Android Studio: "Unable to start the daemon process"
问题描述
我遇到了问题.我一直在 Android Studio 中开发应用程序,从来没有出现过问题,但现在出现了以下错误:
I am having a problem. I have always developed applications in Android Studio and never had a problems, but now I had the following error:
无法启动守护进程.这个问题可能是由守护进程的配置不正确.例如,一个无法识别的使用 jvm 选项.
Unable to start the daemon process. This problem might be caused by incorrect configuration of the daemon. For example, an unrecognized jvm option is used.
请参阅有关守护程序的用户指南章节https://docs.gradle.org/4.4/userguide/gradle_daemon.html
Please refer to the user guide chapter on the daemon at https://docs.gradle.org/4.4/userguide/gradle_daemon.html
我已经在 gradle.properties
中更改了以下行
I already changed in gradle.properties
the following line
org.gradle.jvmargs=-Xmx1536m
到
org.gradle.jvmargs=-Xmx1024m
我还删除了 Users 中的文件夹 .gradle
.
I also delete the folder .gradle
in Users.
推荐答案
检查您的本地防火墙.我发现我的 AV 软件中的防火墙更新导致了同样的错误.当我关闭防火墙时,恶魔启动成功.
Check your local firewall. I found an update of the firewall in my AV software to cause the same error. When I disable the firewall, the demon start succeeds.
我在 3 台不同的 PC 上遇到了同样的问题.我禁用了防火墙,一切正常.即使我的 IDE 没有被防火墙阻止.
I had the same problem on 3 different PCs. I disabled the firewall and everything worked just fine. Even if my IDE is not blocked by the firewall.
我在 Windows 10 Home 上使用 BullGuard 的防火墙.也许有更好的方法来解决这个问题,因为我其实不想每次开始用 gradle 和 java 编程时都禁用防火墙.
I am using BullGuard's firewall on Windows 10 Home. Maybe there is a better way to solve this problem, because I actually don't want to disable the firewall everytime I start programming with gradle and java.
至少这在开始时效果很好.
At least this worked just fine for the beginning.
这篇关于Gradle Daemon Android Studio:“无法启动守护进程"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!