报错信息:
Failed to create session. An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: socket hang up
解决办法:卸载adb设备上appium相关的应用(appium会在第一次运行时自动安装三个应用)
1、通过“adb devices”获取设备名称;
2、依次执行以下三个命令;
adb -s 设备名称 uninstall io.appium.settings
adb -s 设备名称 uninstall io.appium.uiautomator2.server
adb -s 设备名称 uninstall io.appium.uiautomator2.server.test
3、再次运行appium,会自动重新安装以上三个应用,然后就不会出现“socket hang up”的报错信息了。