[Solved] java.Lang.outofmemoryerror: wrappedjavafileobject

The project occupies too much memory, resulting in memory overflow during compilation
1. Modify the compilation space
location: settings -> Compiler -> Build process heap size (Mbytes):

Note: I change 700 to 1000 and just run it again.

Read More: