真机连接时提示Local server not started, start with
Opened this issue · 0 comments
RT,我在尝试使用真机连接时,部分页面会显示如图内的报错,请问这个是什么原因呢?
我尝试重新启动weditor,但仍然在同一个页面会报错,weditor的日志为:
[E 240512 23:33:45 web:1875] Uncaught exception GET /api/v2/devices/AndroidADB%3A/hierarchy (::1)
HTTPServerRequest(protocol='http', host='localhost:17310', method='GET', uri='/api/v2/devices/AndroidADB%3A/hierarchy', version='HTTP/1.1', remote_ip='::1')
Traceback (most recent call last):
File "C:\Python312\Lib\site-packages\tornado\web.py", line 1788, in _execute
result = method(*self.path_args, **self.path_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\site-packages\weditor\web\handlers\page.py", line 97, in get
self.write(d.dump_hierarchy2())
^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\site-packages\weditor\web\device.py", line 44, in dump_hierarchy2
page_xml = self._d.dump_hierarchy()
^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\site-packages\adbutils\shell.py", line 434, in dump_hierarchy
raise AdbError("uiautomator dump failed", output)
adbutils.errors.AdbError: ('uiautomator dump failed', 'ERROR: could not get idle state.\nsuccess')
[E 240512 23:33:45 web:2348] 500 GET /api/v2/devices/AndroidADB%3A/hierarchy (::1) 12332.57ms
设备为Android 14
使用USB连接