2016-06-07 80 views
0

我正在Android模擬器和Appium服務器上運行Robot Framework的自動測試。默認的Android Studio模擬器不夠好,所以我轉而使用Genymotion。但是現在我運行Appium服務器時,出現此錯誤:Appium服務器的Genymotion路徑

Unhandled error: Error: ENOENT, no such file or directory 'C:\Users\user\AppData\Local\Android\sdk\platform-tools\build-tools'

我想這是因爲Genymotion不使用Android SDK。以前在這個位置有仿真器的虛擬設備構建。

現在的問題是:Genymotion與Appium合作應該是什麼路徑?另外當我更改Appium服務器的Android設置中的默認sdk路徑時,它總是在最後添加「\ build-tools」(在這種情況下不正確)。例如:

error: Unhandled error: Error: ENOENT, no such file or directory 'C:\Users\user\AppData\Local\Genymobile\Genymotion\deployed\build-tools'

我不知道如何改變它。 我真的很感激你的幫助。提前致謝。

回答

0

您需要確保

  1. 在Appium -

    Appium UI -> Android Settings -> Advanced 
    SDK Path -> /User/adt-bundle-mac-x86_64-20140702/sdk //this is just an example 
    
  2. 在GenyMotion -

    Settings -> ADB -> Use GenyMotion Android tools (default) 
             OR 
    Settings -> ADB -> Use custom sdk -> /User/adt-bundle-mac-x86_64-20140702/sdk // same as Appium 
    
+0

它的工作原理!謝謝! :) – Anna