“启动Gradle守护程序"循环创建无尽的过程 [英] "Starting Gradle daemon" loop creating endless processes

查看:83
本文介绍了“启动Gradle守护程序"循环创建无尽的过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我在Android Studio中打开或创建一个项目,并且开始进行后台构建或其他操作时,它都会进入启动Gradle守护程序",但会陷入循环,并且永远不会停止重复该步骤.结果,构建永远不会结束,它会继续创建Gradle守护进程,直到系统内存不足并冻结为止.

Whenever I open or create a project in Android Studio, and it starts to do its background build or whatever, it gets to "Starting Gradle daemon", but gets in a loop and never stops repeating that step. As a result, the build never finishes and it keeps creating Gradle daemon processes until the system runs out of memory and freezes.

这是在Ubuntu中.它以前确实可以工作,但我不知道要进行什么更改才能使其开始发生.还有其他人遇到这个问题并能够解决吗?

This is in Ubuntu. It did work previously, and I don't know what could have changed to make it start happening. Has anyone else run into this problem and been able to fix it?

推荐答案

我在Linux上也遇到了同样的问题. 我将其归结为防火墙配置错误.它阻止了Android Studio使用基于环回接口的IP与Gradle守护进程进行通信.

I had the same problem on Linux. I traced it down to a firewall misconfiguration. It prevented Android Studio from communicating with Gradle daemon using IP over loopback interface.

这篇关于“启动Gradle守护程序"循环创建无尽的过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆