uiautomator2 ConnectionError requests.exceptions.ReadTimeout:
文章目录
在使用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即可解决问题
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论