[英]An unknown server-side error occurred while processing the command Original error: Could not find adb.exe in
[英]In Mac: An unknown server-side error occurred while processing the command Original error: Could not find adb
當我在 APPIUM 中開始新會話時,在 appium 中提示以下錯誤:
處理命令時發生未知的服務器端錯誤。 原始錯誤:在 ["/Library/platform-tools/adb/platform-tools/adb","/Library/platform-tools/adb/emulator/adb","/Library/platform-tools 中找不到'adb' /adb/tools/adb","/Library/platform-tools/adb/tools/bin/adb"]。 您是否在“/Library/platform-tools/adb”中安裝了 Android 構建工具?
MacOs 有什么解決方案嗎?
確保正確設置 env 變量。
nano ~/.bash_profile
設置變量以確保路徑正確
export ANDROID_HOME=/LOCAL_PATH_TO/android-sdk
export PATH=$ANDROID_HOME/platform-tools:$PATH
export PATH=$ANDROID_HOME/tools:$PATH
驗證它是否正常工作:
source ~/.bash_profile
echo $ANDROID_HOME
您還可以安裝 appium-doctor 工具來檢查您是否為 Appium 設置了所有內容:
npm install appium-doctor -g
檢查 Android 測試的設置
appium-doctor --android
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.