studio 编译 java.lang.OutOfMemoryError: GC overhead limit exceeded
在文件下,添加maxheapsize 声明
app---》build.gradle
android{
dexOptions {
incremental = true
preDexLibraries = false
javaMaxHeapSize "4g" // 2g should be also OK
}
}
本文介绍了解决Studio编译过程中出现的java.lang.OutOfMemoryError: GC overhead limit exceeded错误的方法。通过在app的build.gradle文件中增加maxheapsize声明,设置javaMaxHeapSize为4g(2g亦可),有效解决了内存溢出的问题。
studio 编译 java.lang.OutOfMemoryError: GC overhead limit exceeded
在文件下,添加maxheapsize 声明
app---》build.gradle
android{
dexOptions {
incremental = true
preDexLibraries = false
javaMaxHeapSize "4g" // 2g should be also OK
}
}
3828

被折叠的 条评论
为什么被折叠?
