2

这是 gradle 日志

e: [kapt] An exception occurred: java.lang.OutOfMemoryError: GC overhead limit exceeded

e: /Users/mladenrakonjac/MyFirstKotlinApp/app/src/main/java/me/mnemonic/myloan/data/AppDatabase.kt: (1, 1): Some error(s) occurred while processing annotations. Please see the error messages above.

如何修复错误java.lang.OutOfMemoryError: GC overhead limit exceeded

4

1 回答 1

0

这在您的 gradle.properties 文件中作为 org.gradle.jvargs 参数的值,例如

org.gradle.jvmargs=-Xms2560m -Xmx4096m -XX:MaxPermSize=350m -XX:ReservedCodeCacheSize=225m -XX:+UseCompressedOops
于 2020-01-08T13:21:58.313 回答