Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

同时连接两台设备失败 #60

Closed
SunYang0 opened this issue Jan 20, 2022 · 1 comment
Closed

同时连接两台设备失败 #60

SunYang0 opened this issue Jan 20, 2022 · 1 comment

Comments

@SunYang0
Copy link

[D 220120 10:47:44 device:161] [885bc9a2] forward atx-agent
[E 220120 10:47:44 main:264] Unknown error: unknown host service
Traceback (most recent call last):
File "main.py", line 247, in device_watch
await device.init()
File "D:\software\pycharm_workplace\PycharmProjects\atxserver2-android-provider\device.py", line 62, in init
await self._init_forwards()
File "D:\software\pycharm_workplace\PycharmProjects\atxserver2-android-provider\device.py", line 162, in _init_forwards
self._atx_proxy_port = await self.proxy_device_port(7912)
File "D:\software\pycharm_workplace\PycharmProjects\atxserver2-android-provider\device.py", line 205, in proxy_device_port
local_port = await self.adb_forward_to_any("tcp:" + str(device_port))
File "D:\software\pycharm_workplace\PycharmProjects\atxserver2-android-provider\device.py", line 194, in adb_forward_to_any
async for f in adb.forward_list():
File "D:\software\pycharm_workplace\PycharmProjects\atxserver2-android-provider\asyncadb.py", line 176, in forward_list
await conn.check_okay()
File "D:\software\pycharm_workplace\PycharmProjects\atxserver2-android-provider\asyncadb.py", line 60, in check_okay
raise AdbError(await self.read_string())
asyncadb.AdbError: unknown host service

手机上atx显示failed to connect to 127.0.0.1:7912

@SunYang0
Copy link
Author

问题解决了,adb版本的问题,原来用的adb1.0.40,换成1.0.39就好了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant