# There is insufficient memory for the Java Runtime Environment to continue.

# Native memory allocation (malloc) failed to allocate 358976 bytes for Chunk::new

# An error report file with more information is saved as:


原因是编译内存不足,在IDEA中,可以设置编译内存即可,如下图:


File | Settings | Build, Execution, Deployment | Compiler

将 Shared build process heap size 设置为 1024 即可,

(这个是 共享构建进程堆内存大小