Error message:
Error: Command 'D:\\Programe\\AndroidSDK\\platform-tools\\adb.exe -P 5037 -s b88041a1 install -g 'C:\\Users\\zzy\\AppData\\Local\\Programs\\Appium Server GUI\\resources\\app\\node_modules\\appium\\node_modules\\io.appium.settings\\apks\\settings_apk-debug.apk'' exited with code 1
Failed to create session.
An unknown server-side error occurred while processing the command. Original error: Error executing adbExec. Original error: 'Command 'D:\\Programe\\AndroidSDK\\platform-tools\\adb.exe -P 5037 -s b88041a1 install -g 'C:\\Users\\zzy\\AppData\\Local\\Programs\\Appium Server GUI\\resources\\app\\node_modules\\appium\\node_modules\\io.appium.settings\\apks\\settings_apk-debug.apk'' exited with code 1'; Command output: adb: failed to install C:\Users\zzy\AppData\Local\Programs\Appium Server GUI\resources\app\node_modules\appium\node_modules\io.appium.settings\apks\settings_apk-debug.apk: Failure [INSTALL_FAILED_USER_RESTRICTED: Install canceled by user]
When encountering these errors, we need to open all three options of the mobile phone developer mode :
Because it needs to install a software:
when debugging for the first time, a key confirmation window will pop up on the mobile phone, which probably means whether you agree to this computer to debug your own computer, and you must agree.
Then the mobile phone must install the software to be debugged , otherwise it will report an error.