UI automator 应用中遇到的问题
1. 在CMD里输入adb devices查询设备是不是联接状态,ADB提示:
List of devices attached
adb server version (32) doesn't match this client (39); killing...
error: could not install *smartsocket* listener: cannot bind to 127.0.0.1:5037: 通常每个套接字地址(协议/网络地址/端口)只允许使用一次。 (10048)
问题:用的91手机助手为手机装的驱动,91手机助手运行的时候占用了ADB Server的端口。关闭91手机助手,问题解决。