解决Original error: Could not proxy command to remote server. Original error: Error: socket hang up

使用appium自动化测试时,报错:Original error: Could not proxy command to remote server. Original error: Error: socket hang up

去掉uiautomator2后,可执行成功

desired_caps['automationName'] = 'uiautomator2'

经分析后,是因为uiautomator2版本不对

解决办法:

在终端执行以下命令:

adb  uninstall io.appium.uiautomator2.server

adb  uninstall io.appium.uiautomator2.server.test

然后重新安装Appium Settings即可解决以上问题

原文地址:https://www.cnblogs.com/mabingxue/p/14046556.html