1)荣耀手机连接电脑不显示的问题
问题描述:
将荣耀手机打开了开发者,
允许USB调试,
选择了文件传输模式,
用数据线连接电脑,手机ding了一声,什么都有没显示
1、多次换数据线+换电脑尝试,不行
2、更新系统版本,可以了...
上述问题过于简单,当个备注,本文编辑新的问题2)如下
2)uiautomator2长时间ATX变为False调用不起来
问题描述:
uiautomator2跑一段时间会出现如下错误
File "\AppData\Local\Programs\Python\Python38\lib\site-packages\uiautomator2\__init__.py", line 486, in _jsonrpc_retry_call
return self._jsonrpc_call(*args, **kwargs)
File "\AppData\Local\Programs\Python\Python38\lib\site-packages\uiautomator2\__init__.py", line 519, in _jsonrpc_call
raise GatewayError(
uiautomator2.exceptions.GatewayError: (<Response [502]>, 'gateway error, time used 0.0s')
During handling of the above exception, another exception occurred:
。。。。。。。。
line 488, in _jsonrpc_retry_call
self.reset_uiautomator(str(e)) # uiautomator可能出问题了,强制重启一下
解决方法:
思路是用adb调用ATX,然后坐标点击 启动UIAUTOMATOR