1. 首先查看实际连接的设备

C:\Users\888.8888>adb devices
List of devices attached
ccb6be96        device
10.1.23.22:5555        device
C:\Users\shujin.chu>adb devices
List of devices attached
ccb6be96        device
10.22.33.54:5555        offline

确实存在两个设备

如果实际上只有一个设备或模拟器,并且查到有offline的状态;
那就说明是adb本身的BUG所导致的,就需要用如下的方法处理下了:

1. adb kill-server
2.taskkill /f /im adb.exe

第一条命令是杀adb的服务,第二条命令是杀adb的进程!
如果第一条没有用,用第二条!

Appium-Python3--UI自动化-[-18-]-断开有线网络连接无线网络时,adb shell时,报错“more than one device and emulator”

 

相关文章:

  • 2022-12-23
  • 2021-11-28
  • 2021-07-11
  • 2021-12-05
  • 2021-12-23
  • 2021-06-02
  • 2021-12-25
  • 2021-08-21
猜你喜欢
  • 2021-10-21
  • 2021-09-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案