Try increasing heap size with java option '-Xmx<size>'.
Warning: This may have produced partial or corrupted output.
[ 60% 38768/63594] build out/target/common/obj/JAVA_LIBRARIES/amap_loc_intermediates/classes.jack
ninja: build stopped: subcommand failed.
make: *** [ninja_wrapper] Error 1
出現(xiàn) Xmx 錯誤是由于電腦內(nèi)存不足,一般在命令行執(zhí)行以下三條語句再編譯就行了堰氓。
export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4g"
./prebuilts/sdk/tools/jack-admin kill-server
./prebuilts/sdk/tools/jack-admin start-server
以下內(nèi)容是我工作環(huán)境的備忘术奖,可以忽略。
~/.jack
# Server settings
SERVER=true
SERVER_PORT_SERVICE=8072
SERVER_PORT_ADMIN=8073
SERVER_COUNT=1
SERVER_NB_COMPILE=2
SERVER_TIMEOUT=120
SERVER_LOG=${SERVER_LOG:=$SERVER_DIR/jack-$SERVER_PORT_SERVICE.log}
JACK_VM_COMMAND=${JACK_VM_COMMAND:="java -Xmx4096m"}
# Internal, do not touch
SETTING_VERSION=2
~/.jack-settings
# Server settings
SERVER_HOST=127.0.0.1
SERVER_PORT_SERVICE=8072
SERVER_PORT_ADMIN=8073
# Internal, do not touch
SETTING_VERSION=4
~/.bashrc
export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4096m"
find jack
ps -ef| grep -i com.android.jack.launcher
restart jack
kill jack_process
your_out/host/linux-x86/bin/jack-admin start
Jack Server not report error after using jack 4.7beta (>_<)
1. kill your jack server
2. copy the old jack command to your_out/host/linux-x86/bin/