Android Studio 启动许多 java.exe 实例,直到用完 ram [英] Android Studio start many instance of java.exe until run out of ram

查看:37
本文介绍了Android Studio 启动许多 java.exe 实例,直到用完 ram的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近我遇到了 Android Studio 4.1 的这个错误.它会启动许多 java.exe 实例(OpenJDK 平台二进制文件),直到 RAM 用完(我有 10GB 的 RAM).

Recently I encountered this error of Android Studio 4.1 . It start many instance of java.exe (OpenJDK Platform binary) until run out of RAM (I have 10gb of RAM).

我无法同步、构建项目.我已经卸载它并重新安装 Android Studio 4.1 但同样的事情发生了.这是我在构建 10 分钟后从 AS 收到的错误消息(通常只需要大约 2 分钟):守护进程的第一个结果是空的.该进程很可能在连接后立即终止.

I cannot sync, build projects. I have uninstall it and reinstall Android Studio 4.1 but the same thing happened. This is the error message I receive from AS after 10 minutes it build (normally only takes about 2 mins) : The first result from the daemon was empty. Most likely the process died immediately after connection.

有没有人有这个错误以及如何修复它?谢谢.

Does anyone have this error and how to fix it? Thanks.

推荐答案

我发现了问题.我在 Windows 10 上使用移动热点,将其关闭,Gradle 守护进程将再次正常运行.

I have found the problem. I use Mobile Hotspot on Windows 10, switched it off and the Gradle deamon will run normal again.

这篇关于Android Studio 启动许多 java.exe 实例,直到用完 ram的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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