An unknown server-side error occurred while processing the command. Original error: Error executing

created at 01-14-2022 views: 4

problem

Appium error:

An unknown server-side error occurred while processing the command. Original error: Error executing adbExec. Original error: 'Command ''D:\\Program Files\\android-sdk\\platform-tools\\adb.exe' -P 5037 -s 127.0.0.1\:62001 install -r C:\\Users\\ChenYaping\\AppData\\Local\\Programs\\Appium\\resources\\app\\node_modules\\appium\\node_modules\\appium-uiautomator2-server\\apks\\appium-uiautomator2-server-debug-androidTest.apk' exited with code 1'; Stderr: 'adb: failed to install C:\Users\ChenYaping\AppData\Local\Programs\Appium\resources\app\node_modules\appium\node_modules\appium-uiautomator2-server\apks\appium-uiautomator2-server-debug-androidTest.apk:'; Code: '1'

solution:

Because the environment variable of the emulator is not configured, add the bin path of the emulator in the system environment variable path

edit the environment variable

edit the environmental variable

Please log in to leave a comment.