运行环境: Appium-windows-1.21.0,手机vivo s7/Android 10
在启动appium的时候报错An unknown server-side error occurred while processing the command. Original error: Neither ANDROID_HOME nor ANDROID_SDK_ROOT environment variable was exported. Read https://developer.android.com/studio/command-line/variables for more details 大致意思就是SDK环境变量配置的不对导致读取不到,可以使用手动配置。 解决方式,手动选择android SDK 本以为这样就解决了,没想到还有新的幺蛾子 An unknown server-side error occurred while processing the command. Original error: Error executing adbExec. Original error: ‘Command ‘D:\Android\platform-tools\adb.exe -P 5037 -s 2591584f install -g ‘C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\io.appium.settings\apks\settings_apk-debug.apk’’ exited with code 1’; Stderr: ‘adb: failed to install C:\Program Files\Appium\resources\app\node_modules\appium\node_modules\io.appium.settings\apks\settings_apk-debug.apk: Failure [INSTALL_FAILED_ABORTED: User rejected permissions]’; Code: ‘1’ 解决方法:因为我使用的vivo手机没有给到权限,开启开发者模式连上调试之后会一次性安装几个appium相关的apk,一直同意就行,就能进入了。
|