无法从Mac OS X中的cmd行启动Android模拟器 [英] Cannot start Android emulator from cmd line in Mac OS X
问题描述
大约2周前,除非我位于android sdk的tools文件夹中,否则无法在Mac OS X上从命令行启动Android Emulator.模拟器可以从AVD Manager正常启动.
From about 2 weeks ago, I cannot launch Android Emulator from Command line on mac os x, unless i am in android sdk's tools folder. The emulators launch from the AVD Manager fine.
我用此命令启动模拟器
仿真器-avd Nexus_6p_API_23"
"emulator -avd Nexus_6p_API_23"
然后,下面出现错误消息
And, got error message below
"[140736029389760]:错误:../android/qt/qt_setup.cpp:28:在../emulator/lib64/qt/lib中找不到Qt库 无法启动'../emulator/qemu/darwin-x86_64/qemu-system-x86_64':没有这样的文件或目录"
"[140736029389760]:ERROR:./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-x86_64': No such file or directory"
有人对此有想法吗?
推荐答案
尝试一下:
/Users/[your_name]/Library/Android/sdk/tools/emulator -avd Nexus_6p_API_23
为您准备的免费脚本
start_6p_23.sh:
start_6p_23.sh:
#!/bin/bash
/Users/[your_name]/Library/Android/sdk/tools/emulator -avd Nexus_6p_API_23
这篇关于无法从Mac OS X中的cmd行启动Android模拟器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!