java - ubuntu 16 下编译安卓7.0源码报错,求解决办法。
迷茫
迷茫 2017-04-18 10:32:34
0
1
1345

报错代码:

[  9% 5286/54851] Ensuring Jack server is installed and started
FAILED: setup-jack-server 
/bin/bash -c "(if !  /bin/bash -c \"prebuilts/sdk/tools/jack-admin install-server prebuilts/sdk/tools/jack-launcher.jar prebuilts/sdk/tools/jack-server-4.11.ALPHA.jar  2>&1 || (exit 0)\"; then uptime;  strace -f prebuilts/sdk/tools/jack-admin install-server prebuilts/sdk/tools/jack-launcher.jar prebuilts/sdk/tools/jack-server-4.11.ALPHA.jar  2>&1 || (exit 1); fi ) && (JACK_SERVER_VM_ARGUMENTS=\"-Dfile.encoding=UTF-8 -XX:+TieredCompilation\"  prebuilts/sdk/tools/jack-admin start-server 2>&1 || exit 0 ) && (if !  /bin/bash -c \"prebuilts/sdk/tools/jack-admin update server prebuilts/sdk/tools/jack-server-4.11.ALPHA.jar 4.11.ALPHA 2>&1 || exit 0\"; then uptime;  strace -f prebuilts/sdk/tools/jack-admin update server prebuilts/sdk/tools/jack-server-4.11.ALPHA.jar 4.11.ALPHA || (exit 1); fi ) && (prebuilts/sdk/tools/jack-admin update jack prebuilts/sdk/tools/jacks/jack-2.28.RELEASE.jar 2.28.RELEASE || exit 47;  prebuilts/sdk/tools/jack-admin update jack prebuilts/sdk/tools/jacks/jack-4.18.BETA.jar 4.18.BETA || exit 47;  prebuilts/sdk/tools/jack-admin update jack prebuilts/sdk/tools/jacks/jack-4.20.BETA.jar 4.20.BETA || exit 47 )"
Jack server already installed in "/home/michael/.jack-server"
Launching Jack server java -XX:MaxJavaStackTraceDepth=-1 -Djava.io.tmpdir=/tmp -Dfile.encoding=UTF-8 -XX:+TieredCompilation -cp /home/michael/.jack-server/launcher.jar com.android.jack.launcher.ServerLauncher
Jack server failed to (re)start, try 'jack-diagnose' or see Jack server log
No Jack server running. Try 'jack-admin start-server'
No Jack server running. Try 'jack-admin start-server'
[  9% 5293/54851] target  C++: libv8 <...er/js-native-context-specialization.cc
ninja: build stopped: subcommand failed.
build/core/ninja.mk:84: recipe for target 'ninja_wrapper' failed
make: *** [ninja_wrapper] Error 1

#### make failed to build some targets (27:03 (mm:ss)) ####

网上的方法找了n多,都没能解决。谷歌建议的方法是该$HOME/.jack文件,找了下我的主目录里并没有,遂自己建了一个,还是不行。
有没有大神给点建议好吗?谢谢了。

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

全部回复(1)
PHPzhong

你到 prebuilts/sdk/tools 目录下执行一下这个命令:./jack-admin install-server jack-launcher.jar jack-server-4.11.ALPHA.jar
jack-launcher.jar,jack-server-4.11.ALPHA.jar这两个文件的名字视你 prebuilts/sdk/tools 目录下的文件名而定,祝元旦快乐。

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板