所在位置:首页 → 异常解决 → Appium异常:An unknown server-side error occurred while processing the command. Original error: Could not find 'adb.exe' in PATH. Please set the ANDROID_HOME or ANDROID_SDK_ROOT ...

Appium异常:An unknown server-side error occurred while processing the command. Original error: Could not find 'adb.exe' in PATH. Please set the ANDROID_HOME or ANDROID_SDK_ROOT ...

发布: 更新时间:2022-10-09 19:39:33

一、异常如下

An unknown server-side error occurred while processing the command. Original error: Could not find 'adb.exe' in PATH. Please set the ANDROID_HOME or ANDROID_SDK_ROOT environment variables to the corect Android SDK root directory path.

看上面的报错,我们知道是环境变量:ANDROID_HOME 或者 ANDROID_SDK_ROOT设置的有问题。

二、解决办法

1.设置环境变量

通过设置变量名,这种来添加环境变量。不要习惯性的直接在Path里面添加完整路径这种方式!

同样的 JAVA_HOME 也要用变量名的方式添加环境变量!

2.管理员身份运行Appium

3.编辑配置路径查看有没有配置上

上如:路径配置正确后,就可以正常使用啦!

标签:,
文章排行