2016-02-29 96 views
0

我試圖仿效使用惹尼一nativescript Android應用程序,但我得到了以下問題:「Genymotion配置不正確。」

Genymotion配置不正確。確保您已將其安裝目錄添加到PATH環境變量中。

> which genymotion 
/Applications/Genymotion.app/Contents/MacOS//genymotion 

> which genyshell 
/Applications/Genymotion Shell.app/Contents/MacOS//genyshell 

我的完整路徑是這樣的:

/usr/local/opt/android-sdk/tools:/usr/local/opt/android-sdk/platform-tools:/usr/local/opt/gradle-2.10/bin:/Applications/Genymotion Shell.app/Contents/MacOS/:/Applications/Genymotion.app/Contents/MacOS/:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/git/bin 

另外,我有運行genymotion沒有問題

不過,我跑的時候 「這」 從CLI獲得以下從GUI。

回答

1

根據您安裝的GenyMotion版本(您的問題缺少信息),geny player將w/v 2.6從二進制文件改爲了.app文件包。

實際播放器的二進制現在是數層較深,在/Applications/Genymotion.app/Contents/MacOS/player.app/Contents/MacOS

http://docs.telerik.com/platform/appbuilder/nativescript/running-your-app/run-app-native-emulator以供參考。

+0

完美。這是問題所在。另外,額外的文檔鏈接非常棒。也爲此感謝。 – rreyes1979

0

你已經錯過了你的PATH反斜槓 - 它應該是這樣的:

/Applications/Genymotion\ Shell.app/Contents/MacOS/ 
+0

我正在使用雙引號,這就是爲什麼我沒有使用反斜線進行縮放。此外,這是「echo $ PATH」結果。 – rreyes1979