2016-02-29 88 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