Android Studio 内存不足 [英] Android Studio Out of Memory

查看:94
本文介绍了Android Studio 内存不足的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

今天早上我遇到了 Android Studio 的问题,每当我打开它时,我都会收到以下错误.

This morning I have been experiencing an issue with Android Studio, whenever I open it I am getting the following error.

我已尝试删除 Android Studio 并进行全新安装.删除所有首选项文件夹.删除并重新下载我的项目的存储库.创建一个新项目.所有这些仍然以显示此错误结束.无论我增加多少内存,它仍然会出现此问题.

I have tried removing Android Studio and getting a clean install. Removing all the preference folders. Removing and re-downloading my project's repository. Creating a new project. All of these still end with this error showing up. No mater how high I increase the memory it is still getting this issue.

我检查了活动监视器,它实际上只使用了 524mb 的内存.有人有什么建议吗?

I have checked the Activity Monitor and it is actually only using 524mb of memory. Does anyone have any suggestions?

接下来我要尝试的是使用旧版本的 Android Studios.除此之外,我不知道除了全新安装操作系统之外还能做什么,并希望一切顺利.

The next thing I'm going to try is using an older version of Android studios. Apart from that I'm not sure what else to do beside a clean install of the OS and hope for the best.

更新:无法找到解决此问题的方法,不得不重新安装 OSX.

UPDATE: Couldn't work out a way of fixing this, and had to perform a clean reinstall of OSX.

推荐答案

我今天与这个问题斗争了几个小时,最终尝试了 File -> Invalidate Caches/Restart... 并选择了 Invalidate/Restart 选项.似乎已修复内存不足错误.

I was fighting with this problem today for a few hours and ended up trying File -> Invalidate Caches / Restart... and chose the Invalidate/Restart option. Seems to have fixed the Out of Memory error.

不知道这对你以后是否有用,但希望它会有所帮助.

Don't know if that will work for you at a later time, but hopefully it helps.

这篇关于Android Studio 内存不足的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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