An unknown server-side error occurred while processing the command. Original error: Error executing adbExec.
Original error: 'Command 'D:\\android-sdk\\platform-tools\\adb.exe -P 5037 -s 4QX4C19726004266 install -r
C:\\Users\\xiaoyu\\AppData\\Local\\Temp\\2023213-11944-18krofa.g9eb\\appium-uiautomator2-server-v4.17.4.apk' exited with code 1'; Stderr: 'adb: failed to install
C:\Users\xiaoyu\AppData\Local\Temp\2023213-11944-18krofa.g9eb\appium-uiautomator2-server-v4.17.4.apk: Failure
上面问题是出现appium在连接手机时,需要安装一些软件或服务到手机里,类似病毒,所以手机可能会禁止安装这些到手机里,这时需要手动去给权限安装或在USB调试里关闭那些检查ADB安装的选项。