Q1.首次编译报错(Ubuntu14.04-Android6.0)
Log: ERROR: Bad request, see Jack server log(/tmp/jack-envy15/jack-8072.log)
Q2.首次编译报错GC overhead limit exceeded (Ubuntu17.04-Android7.1)
关键Log:
Out of memory error (version 1.3-rc6 'Douarn' (441800 22a11d4b264ae70e366aed3025ef47362d1522bb by [email protected])). GC overhead limit exceeded. Try increasing heap size with java option '-Xmx<size>'. // android-7.1.1_r16 FAILED: /bin/bash out/target/common/obj/JAVA_LIBRARIES/core-all_intermediates/with-local/classes.dex.rsp Out of memory error (version 1.2-rc4 'Carnac' (298900 f95d7bdecfceb327f9d201a1348397ed8a843843 by [email protected])). Java heap space. Try increasing heap size with java option '-Xmx<size>'. Warning: This may have produced partial or corrupted output. |
解决方案:
Out of memory error(2次) |
方法1 |
export JACK_SERVER_VM_ARGUMENTS="-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx4096m" out/host/linux-x86/bin/jack-admin kill-server out/host/linux-x86/bin/jack-admin start-server |
Q3.首次编译权限报错(Ubuntu17.04-Android7.1)
关键Log: