Appium异常:An unknown server-side error occurred while processing the command. Original error: Could n

目录

一、异常如下:

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.

二、解决如下:

2.1你的ANDROID_HOME环境变量没配置好

2.1.1右键点击我的电脑--->属性,点击高级系统设置!再点击环境变量

2.1.2配置ANDROID_HOME(路径填写你sdk所在路径!!!)

2.2把Appium关闭并以管理员身份运行重新运行

2.3看编辑配置路径对不对有没有配置上

注意!!!!!!!!!!!!!

如果:错误,无法连接到服务器;您确定要运行吗?

​解决:



一、异常如下:

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.

image

二、解决如下:

2.1你的ANDROID_HOME环境变量没配置好

2.1.1右键点击我的电脑--->属性,点击高级系统设置!再点击环境变量

image
image
image

2.1.2配置ANDROID_HOME(路径填写你sdk所在路径!!!)

image

2.2把Appium关闭并以管理员身份运行重新运行

image

2.3看编辑配置路径对不对有没有配置上

image

image

注意!!!!!!!!!!!!!

image

如果:错误,无法连接到服务器;您确定要运行吗?

image

解决:

image
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容