Appium問題解決方案(7)- Could not find 'adb.exe' in PATH. Please set the ANDROID_HOME environment variable with the Android SDK root directory path


背景:運行代碼提示找不到ADB

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

 

解決方法

步驟一

檢查下ANDROID_HOME環境變量是否正確配置,配置好之后重啟下appium和pycharm 命令行等相關工具

 

步驟二

可以通過appium-desktop查看環境變量是否正確配置,若正確配置可以在程序中正確回顯你配置的環境變量。

 

如果你這里出現的是空白頁面,那么建議你重新配置,或者直接把對應的路徑填上去,然后save and restart


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM