When i build android 6.0, have the build error below:
/bin/bash: line 1: 24978 Killed JACK_VM_COMMAND="java -Dfile.encoding=UTF-8 -Xms2560m -XX:+TieredCompilation -jar out/host/linux-x86/framework/jack-launcher.jar " JACK_JAR="out/host/linux-x86/framework/jack.jar" out/host/linux-x86/bin/jack @build/core/jack-default.args --verbose error --multi-dex native -g -D jack.android.remove-typedef="true" --classpath out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.jack:out/target/common/obj/JAVA_LIBRARIES/bouncycastle_intermediates/classes.jack:out/target/common/obj/JAVA_LIBRARIES/conscrypt_intermediates/classes.jack:out/target/common/obj/JAVA_LIBRARIES/core-junit_intermediates/classes.jack:out/target/common/obj/JAVA_LIBRARIES/core-libart_intermediates/classes.jack:out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jack:out/target/common/obj/JAVA_LIBRARIES/okhttp_intermediates/classes.jack -D jack.import.resource.policy=keep-first -D jack.import.type.policy=keep-first --output-jack out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jack -D jack.java.source.version=1.7 --output-dex out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/jack-rsc $tmpEcjArg
make: *** [out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex] Error 41
The latest error is:
ERROR: Cannot launch Jack server
So I config the jack server false.Then i meet the error above.
I don`t know why. I can`t find the solution by search the internet whole day.
Hope you can anwser by chinese, but english is also ok.
Thank you very much.
Original Attachment has been moved to: nojackbuild-log.txt.zip
Hi, 你可以试一下如下方法:
Android M引入了Jack (Java Android Compiler Kit),在编译时会启动jack server,优化编译速度等。
如果遇到jack编译错误,可以把$HOME/.jack中的配置文件中的SERVER=true设成false,不用jack,jack现在还不稳定。
Have a great day,
Rita
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------