无效的可执行文件目录:../ emulator

num*_*l25 3 typescript android-studio ionic-framework ionic2

我想让Android模拟器与Ionic 2一起工作.这是我的设置......

ANDROID_HOME=/Users/anthonygordon/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home
Run Code Online (Sandbox Code Playgroud)

在Android Studio中,我设置了一个AVD Nexus_5_API_24

我跑的时候会收到以下错误 ionic run android

No emulator specified, defaulting to Nexus_5_API_24


Waiting for emulator to start...


[140736250184640]:ERROR:android/android-emu/android/opengl/EmuglBackendScanner.cpp:37:Invalid executable directory: ../emulator
[140736250184640]:ERROR:android/android-emu/android/opengl/EmuglBackendScanner.cpp:37:Invalid executable directory: ../emulator

[140736250184640]:ERROR:android/android-emu/android/qt/qt_setup.cpp:28:Qt library not found at ../emulator/lib64/qt/lib
Could not launch '../emulator/qemu/darwin-x86_64/qemu-system-i386': No such file or directory
Run Code Online (Sandbox Code Playgroud)

有什么想法吗 ??我被卡住了

Mik*_*hem 8

好的,得到了​​部分答案.当我尝试使用常规的android sdk命令启动模拟器时,我遇到了这个问题

emulator -avd <name of avd>

当我运行which emulator时指向/usr/local/bin/emulator但不是android sdk root中的模拟器/Users/<user name>/Library/Android/sdk/tools/emulator

所以我只是用以下内容运行了那个.

/Users/<user name>/Library/Android/sdk/tools/emulator -avd <emulator name>

它毫无障碍地推出.

我从未使用过离子,但我猜它会指向模拟器的错误二进制文件.也许尝试从/ usr/local/bin中删除模拟器二进制文件?