androidR 低内存编译8g “java.lang.OutOfMemoryError: Java heap space“
1.aosp11更多的采用ninja进行编译,更改swap分区之后,仍然报oom。修改build/soong/java/config/config.gopctx.StaticVariable(“JavacHeapSize”,“2048M”)->pctx.StaticVariable(“JavacHeapSize”,“1024M”)修改build/soong/java/config/makevars