我有 8GB 内存和 500GB 硬盘,但是当我使用 Android Studio 时,它仍然死机太多,以至于我无法工作。我已经重新安装了软件,但没有任何改进。我还格式化了我的系统并再次重新安装了 Android Studio,但没有任何效果。谁能告诉我有什么可能的解决方案吗?
最佳答案
在android studio应用程序包内容中,编辑studio.vmoptions文件,增加“-Xms”和“-Xmx”参数,如
-Xms1024m
-Xmx4096m
更新
我发现 idea 在写入或读取缓存时出错(来自 idea.log)
WARN - .caches.project.IdeaModuleInfo - Could not find correct module information. Reason: Analyzing element of type class com.android.tools.idea.databinding.LightGeneratedComponentClass with no containing file Text: null
每次 android studio 卡住时,我都会删除项目文件夹中的 .idea/caches/
以临时修复卡住问题
关于android - 解决 Android Studio 经常卡顿的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38988202/