在使用uiautomator2踩过的坑
有时候会莫名其妙 报
uiautomator2requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=54573):
或者
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='[127.0.0.1](127.0.0.1)', port=61466): Read timed out. (read timeout=60)
这2个错的时候
直接重装 uiautomator2 包即可解决问题
python -m uiautomator2 init
如果在init的过程中 控制台输出信息 卡主不动
直接重新连接手机和usb插口 然后重新init即可解决问题
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。