adb 无法连接到位于 tcp:5037 的守护进程

新手上路,请多包涵

我的 adb 无法连接设备。我正在运行 adb start-server

     ulucudeMacBook-Pro:~ ulucu$ adb start-server
    * daemon not running. starting it now at tcp:5037 *
    * daemon started successfully *

然后运行“ lsof -i tcp:5037

     ulucudeMacBook-Pro:~ ulucu$ lsof -i tcp:5037
    COMMAND  PID  USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
    adb     2308 ulucu    7u  IPv4 0x440443a862048a7b      0t0  TCP localhost:5037 (LISTEN)

但是当我运行 adb kill-server

     ulucudeMacBook-Pro:~ ulucu$ adb kill-server
    * server not running *

或运行 adb devicesadb shell

     List of devices attached
    * daemon not running. starting it now at tcp:5037 *
    adb E 03-31 09:30:26  2350 95705 usb_osx.cpp:333] Could not open interface: e00002c5
    adb E 03-31 09:30:26  2350 95705 usb_osx.cpp:294] Could not find device interface
    error: could not install *smartsocket* listener: Address already in use
    ADB server didn't ACK
    * failed to start daemon *
    error: cannot connect to daemon

adb一直在运行。

没有其他进程使用“5037”端口。

没有其他模拟器像“genymotion”。

我的系统是 Mac 10.12.14。

我的 adb 版本是 1.0.39。

有什么问题?

原文由 teacher-too 发布,翻译遵循 CC BY-SA 4.0 许可协议

阅读 1.5k
1 个回答
adb kill-server

如果端口发生错误:

adb reconnect 帮我解决

原文由 Acauã Pitta 发布,翻译遵循 CC BY-SA 4.0 许可协议

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题