1. 程式人生 > 其它 >Appium異常:An unknown server-side error occurred while processing the command. Original error: Could n

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.


二、解決如下:

2.1你的ANDROID_HOME環境變數沒配置好

2.1.1右鍵點選我的電腦--->屬性,點選高階系統設定!再點選環境變數

 

 

 

 

 

 

2.1.2配置ANDROID_HOME(路徑填寫你sdk所在路徑!!!)

 

 

2.2把Appium關閉並以管理員身份執行重新執行

 

2.3看編輯配置路徑對不對有沒有配置上

 

 

 

 

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

 

 

 

如果:錯誤,無法連線到伺服器;您確定要執行嗎?

 

 

 

 

解決: