gpt4 book ai didi

android - jack 服务器无法(重新)启动

转载 作者:太空狗 更新时间:2023-10-29 13:51:50 37 4
gpt4 key购买 nike

我正在尝试构建 Android N,但我不断收到此错误:

15:37:13 FAILED: /bin/bash -c "(prebuilts/sdk/tools/jack-admin install-server prebuilts/sdk/tools/jack-launcher.jar prebuilts/sdk/tools/jack-server-4.8.ALPHA.jar  2>&1 || (exit 0) ) && (JACK_SERVER_VM_ARGUMENTS=\"-Dfile.encoding=UTF-8 -XX:+TieredCompilation\" prebuilts/sdk/tools/jack-admin start-server 2>&1 || exit 0 ) && (prebuilts/sdk/tools/jack-admin update server prebuilts/sdk/tools/jack-server-4.8.ALPHA.jar 4.8.ALPHA 2>&1 || exit 0 ) && (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-3.36.CANDIDATE.jar 3.36.CANDIDATE || exit 47; prebuilts/sdk/tools/jack-admin update jack prebuilts/sdk/tools/jacks/jack-4.7.BETA.jar 4.7.BETA || exit 47 )"
15:37:13 Jack server already installed in "/srv/jenkins/.jack-server"
15:37:13 Launching Jack server java -XX:MaxJavaStackTraceDepth=-1 -Djava.io.tmpdir=/tmp -Dfile.encoding=UTF-8 -XX:+TieredCompilation -cp /srv/jenkins/.jack-server/launcher.jar com.android.jack.launcher.ServerLauncher
15:37:13 Jack server failed to (re)start, try 'jack-diagnose' or see Jack server log
15:37:13 No Jack server running. Try 'jack-admin start-server'
15:37:13 No Jack server running. Try 'jack-admin start-server'

我在 jack-admin 代码中放置了一些日志,当我执行 ./jack-admin start-server 时出现以下错误。

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to 127.0.0.1 port 8077: No route to host
isServerRunning : Curl code : 7
Launching Jack server java -XX:MaxJavaStackTraceDepth=-1 -Djava.io.tmpdir=/tmp -Dfile.encoding=UTF-8 -XX:+TieredCompilation -cp /srv/jenkins/.jack-server/launcher.jar com.android.jack.launcher.ServerLauncher
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to 127.0.0.1 port 8077: No route to host
waitServerStarted : curl code : 7
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to 127.0.0.1 port 8077: No route to host
waitServerStarted : curl code : 7
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to 127.0.0.1 port 8077: No route to host

有人可以帮忙吗?

编辑

  1. Jack 服务器日志干净,没有异常或错误。
  2. 默认端口 8076 和 8077 被阻止,如 netstat -nlp 所示,这表明服务器确实已启动。

    tcp6 0 0 127.0.0.1:8076:::* 监听 19180/java
    tcp6 0 0 127.0.0.1:8077:::* 听 19180/java

  3. 我正在构建代码的机器位于代理后面。

最佳答案

当我遇到 Curl 错误 7 时,它在运行 jack-diagnose 时伴随着 SSL 错误。以下解决方案对我有用:

  1. 编辑 java.security /etc/java-8-openjdk/security/ 下的文件
  2. 从 jdk.tls.disabledAlgorithms 中移除 TLSv1、TLSv1.1
  3. 重启 jack 服务器:
    • cd <your-aosp-home-dir>/prebuilts/sdk/tools/
    • ./jack-admin kill-server
    • ./jack-admin start-server

关于android - jack 服务器无法(重新)启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45794488/

37 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com