Android adb常见问题整理

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/g984160547/article/details/79741855

Appium——adb 启动问题Invalid argument: cannot open transport registration socketpair could not read ok from ADB Server failed to start daemon * error: cannot connect to daemon

adb启动问题:Invalid argument: cannot open transport registration socketpair could not read ok from ADB Server failed to start daemon * error: cannot connect to daemon

解决办法:

关闭系统自带的防火墙,重启OK

(之前一直是关闭的,使用TeamViewer的时候把防火墙打开了)


另附解决adb端口占用问题解决:

1、adb nodaemon server  查看abd服务是否正常

2、netstat -ano | findstr "5037"  查看adb端口占用情况

3、tasklist|findstr "XXX" 查看占用进程名

4、kill掉占用端口的进程

1. 插拔下USB连接线
2. 关闭USB模式再打开
3. 执行以下命令

adb kill-server  
adb start-server   

4.  效果与3相同
DDMS - Devices - Reset adb

5. 关闭所有PC套件,例如:
杀死 Wandoujia  相关的所有进程,ok
wandoujia_daemon.exe
wandoujia_helper.exe


6. 重启Eclipse
7. 查看有几个ADB进程,全部杀死再重新启动ADB
8. 查看下USB先是否连接电脑与手机
9. 重启手机
10. 关闭占用5037端口软件
11. 更新adb (见问题14)

1. 查看占用端口5037的PID值
netstat -a -n -o |findstr "5037"
输出结果:
  TCP    127.0.0.1:5037         0.0.0.0:0              LISTENING       5096
  TCP    127.0.0.1:5037         127.0.0.1:51577        ESTABLISHED     5096
  TCP    127.0.0.1:51577        127.0.0.1:5037         ESTABLISHED     4324


2. 从上面得知PID = 5096占用了5037端口,现在通过PID查看进程名,看到底哪个进程占用此端口
tasklist /v | findstr 5096
输出结果:
tadb.exe  5096 Console  1  4,932 K Unknown  ......  0:00:02 暂缺


网上查询得知tadb.exe是腾讯管家启动的进程


3. 杀死占用5037端口的进程 tadb.exe
taskkill /f -pid 5096
taskkill /im tadb.exe
输出结果
成功: 已终止 PID 为 5096 的进程。


猜你喜欢

转载自blog.csdn.net/g984160547/article/details/79741855