错误1
GC overhead limit exceeded.
Try increasing heap size with java option '-Xmx<size>'. Warning: This may have produced partial or corrupted output.</size>
解决方法:
1) 修改文件android/prebuilts/sdk/tools/jack-admin ,添加如下 -Xmx4096m 参数
JACK_SERVER_COMMAND="java -XX:MaxJavaStackTraceDepth=-1 -Djava.io.tmpdir=$TMPDIR $JACK_SERVER_VM_ARGUMENTS -Xmx4096m -cp $LAUNCHER_JAR $LAUNCHER_NAME"
2)重启jack server
./prebuilts/sdk/tools/jack-admin stop-server
./prebuilts/sdk/tools/jack-admin start-server
错误2
android/kernel/msm-4.9/scripts/sign-file.c:25:30: fatal error: openssl/opensslv.h: No such file or directory
#include <openssl/opensslv.h>
opensslv -version -a 查看了下发现是没有安装opensslv
解决方法:
apt-get install libssl-dev
sudo apt-get install libffi-dev
重新编译,编译通过