问题一:
terminating with uncaught exception of type std::bad_alloc: std::bad_alloc Could not build FEC data! Error: terminating with uncaught exception of type std::bad_alloc: std::bad_alloc Out of space? the tree size of out/target/product/angler/system is (MB): 955 out/target/product/angler/system The max is 3072 MB.
ninja: build stopped: subcommand failed. 16:23:12
ninja failed with: exit status 1
解决方案:杀死java进程 在命令行输入pkill -9 java
export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4096m"
./prebuilts/sdk/tools/jack-admin kill-server
./prebuilts/sdk/tools/jack-admin start-server