当我使用Mac OS X Terminal导航到该文件夹我的Android模拟器,并键入emulator
,我得到:我得到“命令未找到”当我尝试在Mac OS上运行的Android模拟器X
命令不发现
这里发生了什么:
$ emulator
-bash: emulator: command not found
我如何得到它的工作?
当我使用Mac OS X Terminal导航到该文件夹我的Android模拟器,并键入emulator
,我得到:我得到“命令未找到”当我尝试在Mac OS上运行的Android模拟器X
命令不发现
这里发生了什么:
$ emulator
-bash: emulator: command not found
我如何得到它的工作?
与OS X类似的current directory is not normally included in your $PATH
on a *nix operating system;在当前目录中执行程序,与所述路径的当前目录(.
)在它前面:
$ ./emulator
可以与Android Studio中https://developer.android.com/studio/run/managing-avds.html
添加仿真器要启动模拟器:~/Library/Android/sdk/tools/emulator -avd Nexus_5X_API_23
相关问题:How do I launch the Android emulator from the command line?
打开Android Studio。点击AVD Manager(带有android和手机的图标)[example image: AVD Manager]。查看模拟器列表。如果你没有,你应该看到类似“安装模拟器”。
一旦成功,你会得到工具文件夹下载到您的〜/库/安卓/ SDK
这就是你想要的文件夹,因为它具有的Android和仿真器命令行工具。
除非您将命令添加到PATH变量中,否则您需要指定二进制文件的路径,即从它所在的目录指定'./ emulator'。 – 2012-04-22 15:35:42