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

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

问题描述

今天上午我一直在遇到问题与Android工作室,每当我打开它,我收到以下错误。

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

我曾尝试删除的Andr​​oid Studio和得到一个干净的安装。删除所有preference文件夹。删除并重新下载我的项目的存储库。创建一个新的项目。所有这些仍与这个错误最终显示出来。没有母校我有多高,增加内存是仍然得到这个问题。

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?

我要尝试使用的Andr​​oid工作室的旧版本接下来的事情。除此之外,我不知道还能做什么干净旁边的操作系统的安装和最好的希望。

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.

推荐答案

我这个问题今天的战斗了几个小时,最终试图文件 - >的Invalidate缓存/重新启动...并选择了的Invalidate /重新启动选项。似乎已经解决了内存不足的错误。

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天全站免登陆