android - 解决 Android Studio 经常卡顿的问题

标签 android android-studio-2.1

我有 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/

相关文章:

bitbucket - Android Studio 2.0/2.1/3.0+ 不兼容 Bitbucket 插件 1.2.1

android - 将 React-Native bundle 图像传递给原生模块

gradle - 无法在具有20个库的大型项目中加快编译时间

安卓工作室错误 :Adb connection Error:An existing connection was forcibly closed by the remote host

javascript - Android - 向服务器询问新版本的应用程序?

Android Studio 错误 : NoClassDefFoundError

android - 渲染问题 渲染过程中引发异常 : com/android/util/PropertiesMap

java - 如何回到上一个 Activity ?

android - In App Billing BroadcastReceiver内存泄漏

android - 将进度条放在元素上