ERROR: No Jack server running

编译 Android 6.0


xxxx@xxxx:android6.0$ vim /home/xxxx/.jack

xxxx@xxxx:android6.0$ jack-admin server-start
jack-admin: command not found

xxxx@xxxx:android6.0$ find . -name jack-admin
./out/host/linux-x86/obj/EXECUTABLES/jack-admin_intermediates/jack-admin
./out/host/linux-x86/bin/jack-admin

./prebuilts/sdk/tools/jack-admin


xxxx@xxxx:android6.0$ PATH=./prebuilts/sdk/tools/:$PATH

或者输入这条指令   

export PATH=$PATH:~/myandroid/prebuilts/sdk/tools

xxxx@xxxx:android6.0$ jack

jack 

      jack-admin  
xxxx@xxxx:android6.0$ jack-admin server-start
Usage : ./prebuilts/sdk/tools/jack-admin [ start-server |stop-server | kill-server | list-server | server-log | server-stat]
xxxx@xxxx:android6.0$ jack-admin stop-server
Stopping background server
./prebuilts/sdk/tools/jack-admin: line 123: curl: command notfound
./prebuilts/sdk/tools/jack-admin: line 123: curl: command notfound
./prebuilts/sdk/tools/jack-admin: line 123: curl: command notfound
./prebuilts/sdk/tools/jack-admin: line 123: curl: command notfound
ERROR: Communication error with Jack server (127)

xxxx@xxxx:android6.0$ jack-admin server-stat
Getting statistic from background server
./prebuilts/sdk/tools/jack-admin: line 123: curl: command notfound
./prebuilts/sdk/tools/jack-admin: line 123: curl: command notfound
./prebuilts/sdk/tools/jack-admin: line 123: curl: command notfound
./prebuilts/sdk/tools/jack-admin: line 123: curl: command notfound
ERROR: Communication error with Jack server (127)

xxxx@xxxx:android6.0$ curl -version
The program 'curl' is currently not installed. You can install it by typing:
sudo apt-get install curl
xxxx@xxxx:android6.0$ sudo apt-get install curl
[sudo] password for xxxx:
Reading package lists... Done
Building dependencytree      
Reading state information... Done
The following packages were automatically installed and are nolonger required:
  language-pack-kde-en kde-l10n-engblanguage-pack-kde-en-base
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
  curl
0 upgraded, 1 newly installed, 0 to remove and 39 notupgraded.
Need to get 138 kB of archives.
After this operation, 353 kB of additional disk space will beused.
WARNING: The following packages cannot be authenticated!
  curl
Install these packages without verification [y/N]? y
Get:1 http://cn.archive.ubuntu.com/ubuntu/ precise-updates/maincurl amd64 7.22.0-3ubuntu4.15 [138 kB]
Fetched 138 kB in 0s (318 kB/s)
Selecting previously unselected package curl.
(Reading database ... 189439 files and directories currentlyinstalled.)
Unpacking curl (from .../curl_7.22.0-3ubuntu4.15_amd64.deb)...
Processing triggers for man-db ...
Setting up curl (7.22.0-3ubuntu4.15) ...
xxxx@xxxx:android6.0$


root@ubuntu:/home/work/android-firefly_6.0/prebuilts/sdk/tools# apt-get install jack

xxxx@xxxx:android6.0$ curl -version
curl: no URL specified!
curl: try 'curl --help' or 'curl --manual' for moreinformation

xxxx@xxxx:android6.0$ curl -V
curl 7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1zlib/1.2.3.4 libidn/1.23 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldappop3 pop3s rtmp rtsp smtp smtps telnet tftp
Features: GSS-Negotiate IDN IPv6 Largefile NTLM NTLM_WB SSL libzTLS-SRP
xxxx@xxxx:android6.0$
xxxx@xxxx:android6.0$
xxxx@xxxx:android6.0$ jack-admin server-stat
Getting statistic from background server
ERROR: No Jack server running
xxxx@xxxx:android6.0$
xxxx@xxxx:android6.0$ jack-admin
Usage : ./prebuilts/sdk/tools/jack-admin [ start-server |stop-server | kill-server | list-server | server-log | server-stat]
xxxx@xxxx:android6.0$ jack-admin start-server
./prebuilts/sdk/tools/jack-admin: line 96: JACK_JAR: unboundvariable
xxxx@xxxx:android6.0$
xxxx@xxxx:android6.0$
xxxx@xxxx:android6.0$ export USER=$(whoami)
xxxx@xxxx:android6.0$ jack-admin start-server
./prebuilts/sdk/tools/jack-admin: line 96: JACK_JAR: unboundvariable
xxxx@xxxx:android6.0$ llout/host/linux-x86/framework/jack.jar
-rwxrwxrwx 1 xxxx xxxx 9448185  4月 26 10:03out/host/linux-x86/framework/jack.jar*
xxxx@xxxx:android6.0$
xxxx@xxxx:android6.0$
xxxx@xxxx:android6.0$
xxxx@xxxx:android6.0$
xxxx@xxxx:android6.0$
xxxx@xxxx:android6.0$
xxxx@xxxx:android6.0$
xxxx@xxxx:android6.0$
xxxx@xxxx:android6.0$
xxxx@xxxx:android6.0$ echo $PATH

xxxx@xxxx:android6.0$ env

xxxx@xxxx:android6.0$
xxxx@xxxx:android6.0$
xxxx@xxxx:android6.0$
xxxx@xxxx:android6.0$ exportJACK_JAR=./out/host/linux-x86/framework/jack.jar
xxxx@xxxx:android6.0$
xxxx@xxxx:android6.0$
xxxx@xxxx:android6.0$ jack-admin start-server
Launching Jack server java -cp./out/host/linux-x86/framework/jack.jarcom.android.jack.server.JackSimpleServer
xxxx@xxxx:android6.0$
xxxx@xxxx:android6.0$

正确的指令输出结果,即成功
xxxx@xxxx:android6.0$ jack-admin start-server
Launching Jack server java -cp./out/host/linux-x86/framework/jack.jarcom.android.jack.server.JackSimpleServer

xxxx@xxxx:android6.0$ jack-admin start-server
Launching Jack server java -cp./out/host/linux-x86/framework/jack.jarcom.android.jack.server.JackSimpleServer
xxxx@xxxx:android6.0$ jack-admin start-server
Launching Jack server java -cp./out/host/linux-x86/framework/jack.jarcom.android.jack.server.JackSimpleServer
xxxx@xxxx:android6.0$
xxxx@xxxx:android6.0$
xxxx@xxxx:android6.0$








参考网址:https://stackoverflow.com/questions/43996563/jack-admin-command-not-found

http://blog.sina.com.cn/s/blog_8acf1be10102w6a7.html


你可能感兴趣的:(android)