help: android 6.0 build error

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

help: android 6.0 build error

1,994 次查看
tent
Contributor I

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

标签 (1)
0 项奖励
回复
4 回复数

1,202 次查看
Rita_Wang
NXP TechSupport
NXP TechSupport

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!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复

1,202 次查看
tent
Contributor I

Rita Wang:

你好,我在描述中提到了已将jack SERVER 设置为false。上述编译错误是在设置为false后发生的。

我分别在当前用户tent和超级用户root下cat .jack,并分别将二者的.jack通过vi命令更改了SERVER = false.

编译时,我使用的是root用户。

然后发生了上述的编译错误。编译时的打印输出文件我已上传附件。

0 项奖励
回复

1,202 次查看
Rita_Wang
NXP TechSupport
NXP TechSupport

请问你使用的是哪块板子呢?能否告诉我一下你使用板子的型号。以及使用的是哪款芯片。

0 项奖励
回复

1,202 次查看
tent
Contributor I

imax6qp;saber-sd

0 项奖励
回复