Updating adb and running it throws socket address error

0

Hi, I'm wondering how it's possible to update adb without killing the existing adb server.

Running adb kill-server in install phase gives me this output: adb kill-server is not permitted. If I don't kill, then running adb devices after downloading new adb gives me:

adb server version (39) doesn't match this client (41); killing...
ADB server didn't ACK
Full server startup log: /tmp/adb.1019.log
Server had pid: 2591
--- adb starting (pid 2591) ---
adb I 01-02 18:12:22  2591  2591 main.cpp:63] Android Debug Bridge version 1.0.41
adb I 01-02 18:12:22  2591  2591 main.cpp:63] Version 33.0.3-8952118
adb I 01-02 18:12:22  2591  2591 main.cpp:63] Installed as /home/device-farm/android-sdk-linux-new/platform-tools/adb
adb I 01-02 18:12:22  2591  2591 main.cpp:63] 
adb F 01-02 18:12:22  2591  2591 main.cpp:167] could not install *smartsocket* listener: Address already in use

Please suggest - how do I proceed here?

Custom env YAML for updating ADB:

version: 0.1
phases:
  install:
    commands:
      - mkdir -p /home/device-farm/android-sdk-linux-new/
      - curl -L "https://dl.google.com/android/repository/platform-tools-latest-linux.zip" -o /tmp/new_build_tools_2.zip
      - unzip /tmp/new_build_tools_2.zip -d /home/device-farm/android-sdk-linux-new
      - export ANDROID_HOME=/home/device-farm/android-sdk-linux-new
      - export PATH="/home/device-farm/android-sdk-linux-new/platform-tools":"$PATH"
vibin
已提问 1 年前84 查看次数
没有答案

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则

相关内容