mac电脑已经配置好adb命令后,在使用adb devices命令(查看设备)的时候,出现错误:
(base) ➜ ~ adb devices
List of devices attached
问题原因:adb版本不一致导致的
解决办法:
1、终端输入which adb
2、将查询到的adb复制到夜神模拟器下-MacOS目录下
原有的adb设置为备用
3、重新输入adb devices即可查询出
(base) ➜ ~ adb devices
List of devices attached
127.0.0.1:62001 device