ionic真机调试Android报错 - could not read ok from ADB Server * failed to start daemon * error: cannot connect to daemon

在使用真机调试Android程序时,报错如下:

could not read ok from ADB Server
* failed to start daemon
error: cannot connect to daemon
  • 首先,打开命令行工具,找出占用5037端口号的对应pid号

netstat -ano | findstr :5037
  • 如果端口被占用,在任务列表中找到占用端口的进程

tasklist | findstr processID
  • 打开任务管理器,将对应pid号的进程杀死。然后运行命令手动启动adb,成功

adb start-server
上一篇:adb server is out of date. killing... ADB server didn't ACK * failed to start daemon *……


下一篇:ADB server didn't ACK * failed to start daemon *