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

猜你喜欢

转载自www.cnblogs.com/Jason-Xiang/p/9390123.html
今日推荐