在tcp:5037,adb无法连接到守护进程 [英] adb cannot connect to daemon at tcp:5037

查看:2445
本文介绍了在tcp:5037,adb无法连接到守护进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

  ulucudeMacBook-Pro:〜ulucu $ adb start-server *守护程序未运行。现在开始在tcp:5037 **守护进程成功启动*  



然后运行 lsof -i tcp:5037

ulucudeMacBook-Pro:〜ulucu $ lsof -i tcp:5037COMMAND PID用户FD类型设备大小/关闭节点NAMEadb 2308 ulucu 7u IPv4 0x440443a862048a7b 0t0 TCP localhost:5037(LISTEN)

但是当我运行 adb kill-server 时,



ulucudeMacBook-Pro:〜ulucu $ adb kill-server *服务器没有运行*



或运行 adb设备 adb shell



附件列表守护进程没有运行。现在开始在tcp:5037 * adb E 03-31 09:30:26 2350 95705 usb_osx.cpp:333]无法打开界面:e00002c5adb E 03-31 09:30:26 2350 95705 usb_osx.cpp:294]可以未找到设备接口错误:无法安装* smartsocket *侦听器:地址已在使用ADB服务器没有确认*未能启动守护进程*错误:无法连接到守护进程

adb已经运行,
没有其他进程使用5037端口,
没有其他模拟器,如genymotion
我的系统是Mac 10.12.14,
我的adb版本是1.0.39。



有什么问题?

解决方案

如果您已更新到Platform Tools 25.0.4(您可以从命令行检查是否运行了 android ),

只需下载以前的稳定版本,例如: https://dl.google.com/android/reposito ry / platform-tools_r25.0.2-macosx.zip

然后转到您的Android SDK主目录,并用下载的文件夹替换platform-tools文件夹。



然后执行:

  ps aux | grep 5037 
kill -9< pid你错误运行的adb>

然后去

  adb devices 


my adb can't connect devices。 I am run "adb start-server"

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

Then run "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)

But when I run "adb kill-server"

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

or run "adb devices" or "adb 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

The adb has been running, No other processes using "5037" port, No other simulator like "genymotion" My system is Mac 10.12.14, My adb version is 1.0.39。

What's the problem?

解决方案

If you have updated to Platform Tools 25.0.4(you can check running android from command line) and it's not working

Just download previous stable version e.g: https://dl.google.com/android/repository/platform-tools_r25.0.2-macosx.zip

Then go to your Android SDK home directory and replace platform-tools folder with the downloaded one.

Then do:

ps aux | grep 5037
kill -9 <pid of process of your incorrectly running adb>

And go

adb devices

这篇关于在tcp:5037,adb无法连接到守护进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆