Jason-Xiang

在使用真机调试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

 

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-03-08
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-22
  • 2021-12-22
  • 2022-12-23
  • 2021-12-17
  • 2022-12-23
  • 2021-05-13
相关资源
相似解决方案