使用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即可解决以上问题

相关文章:

  • 2022-12-23
  • 2021-10-23
  • 2022-01-22
  • 2021-05-29
  • 2021-04-04
  • 2022-12-23
  • 2022-12-23
  • 2021-10-29
猜你喜欢
  • 2021-10-18
  • 2021-04-19
  • 2022-12-23
  • 2022-12-23
  • 2022-02-16
  • 2022-01-02
  • 2021-11-02
相关资源
相似解决方案