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

报错代码:

[  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 目錄下的檔名而定,祝元旦快樂。

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!