一般由于初始配置的堆内存不够导致该问题。 java: java.lang.OutOfMemoryError :xxxxxx IDE 打开 Setting -> Compiler -> Shared build process heap size(Mbytes)增加对应堆内存重启项目