android studio Error:java.lang.OutOfMemoryError: GC overhead limit exceeded
在app下的build.gradle中找到android,并添加如下配置
dexOptions {
javaMaxHeapSize "4g"
}
如:
android {
... ... dexOptions {
javaMaxHeapSize "4g"
}
... ...
}
2022-10-12 11:33:19
android studio Error:java.lang.OutOfMemoryError: GC overhead limit exceeded
在app下的build.gradle中找到android,并添加如下配置
dexOptions {
javaMaxHeapSize "4g"
}
如:
android {
... ... dexOptions {
javaMaxHeapSize "4g"
}
... ...
}