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

愿君学长松,慎勿作桃李。这篇文章主要讲述ionic真机调试Android报错 - could not read ok from ADB Server * failed to start daemon * error: cannot conn相关的知识,希望能为你提供帮助。
【ionic真机调试Android报错 - could not read ok from ADB Server * failed to start daemon * error: cannot conn】在使用真机调试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

 

    推荐阅读