1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 05:08:19 +08:00

Fix: Error 10054 when install uiautomator2 (#1878)

This commit is contained in:
SarContDeli
2022-11-21 23:14:02 +08:00
committed by GitHub
parent f4abcb4740
commit e6cd0043cf
2 changed files with 23 additions and 13 deletions

View File

@@ -538,7 +538,11 @@ class Connection(ConnectionAttr):
logger.info('Install uiautomator2')
init = u2.init.Initer(self.adb, loglevel=logging.DEBUG)
init.set_atx_agent_addr('127.0.0.1:7912')
init.install()
try:
init.install()
except ConnectionError:
u2.init.GITHUB_BASEURL = 'http://tool.appetizer.io/openatx'
init.install()
self.uninstall_minicap()
def uninstall_minicap(self):