1. 程式人生 > >appium報錯及解決方案

appium報錯及解決方案

【已解決】mac上手動開啟appium報錯:“Could not find aapt Please set the ANDROID_HOME environment variable with the Android SDK root directory path”

解決過程:

  使用命令appium-doctor檢查,發現沒有錯誤。

  檢查環境變數$ANDROID_HOME和aapt,也是正確的。

解決辦法:

網上看到的,命令後啟動正常,手工啟動appium才有問題。我嘗試使用命令後啟動appium後,問題果然解決。命令列啟動appium:

/Applications/Appium.app/Contents/MacOS/Appium