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

 

posted @   大象踢足球  阅读(902)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示