简体   繁体   English

Gradle Daemon Android Studio:“无法启动守护进程”

[英]Gradle Daemon Android Studio: “Unable to start the daemon process”

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:我一直在 Android Studio 中开发应用程序,从未遇到过问题,但现在出现以下错误:

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.例如,使用了无法识别的 jvm 选项。

Please refer to the user guide chapter on the daemon at https://docs.gradle.org/4.4/userguide/gradle_daemon.html请参阅https://docs.gradle.org/4.4/userguide/gradle_daemon.html上有关守护程序的用户指南章节

I already changed in gradle.properties the following line我已经在gradle.properties更改了以下行

org.gradle.jvmargs=-Xmx1536m

to

org.gradle.jvmargs=-Xmx1024m

I also delete the folder .gradle in Users.我还删除了用户中的文件夹.gradle

Check your local firewall.检查您的本地防火墙。 I found an update of the firewall in my AV software to cause the same error.我发现我的 AV 软件中的防火墙更新导致了同样的错误。 When I disable the firewall, the demon start succeeds.当我禁用防火墙时,恶魔启动成功。

I had the same problem on 3 different PCs.我在 3 台不同的 PC 上遇到了同样的问题。 I disabled the firewall and everything worked just fine.我禁用了防火墙,一切正常。 Even if my IDE is not blocked by the firewall.即使我的 IDE 没有被防火墙阻止。

I am using BullGuard's firewall on Windows 10 Home.我在 Windows 10 Home 上使用 BullGuard 的防火墙。 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.也许有更好的方法来解决这个问题,因为我实际上并不想每次开始用 gradle 和 java 编程时都禁用防火墙。

At least this worked just fine for the beginning.至少这在开始时工作得很好。

Check your local firewall.检查您的本地防火墙。 I found an update of the firewall in my AV software to cause the same error.我发现我的 AV 软件中的防火墙更新导致了同样的错误。 When I disable the firewall, the demon start succeeds.当我禁用防火墙时,恶魔启动成功。

只需禁用防病毒软件,然后再试一次;)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM