OutOfMemoryError: insufficient memory报错
问题描述 :
IDEA编译项目出现:OutOfMemoryError: insufficient memory报错;
原因分析
IDEA设置中,默认共享构建进程堆大小设置对于项目小了,默认是700Mbytes
解决方案
方法1:
点击file , 选择Invalidate Caches 进行清理一下。

方法2:
如果方式1还是无法解决,修改Compiler下面的Compiler Process heap size 参数,默认的是700,可适当调整大小,比如2048/4096之类
设置路径 : File -> Setting -> Compiler -> Shared build process heap size(Mbytes)
