7 macos android android-emulator android-studio
我一直在研究一个Android项目,我在我的iMAC上使用android studio [软件OS X 10.9.5,图形Intel HD Graphics 5000 1024 MB,处理器1.4 GHz Intel Core i5].
当我尝试在Android模拟器上打开我的应用程序时,它会收到此错误 -
emulator: ERROR: x86 emulation currently requires hardware acceleration!
Please ensure Intel HAXM is properly installed and usable.
CPU acceleration status: HAX kernel module is not installed!
Run Code Online (Sandbox Code Playgroud)
我可以在Google和SO上找到解决方案这么多类似的问题,但我无法将这些解决方案用于MAC ???
我按照这里给出的所有步骤但没有运气,仍然无法启动模拟器.我认为与mac os有关.
谁能告诉我如何在MAC上做这个?
谢谢
oab*_*rca 30
首先,确保Intel HAXM是最新的.您可以通过打开SDK并在列表中选择它来更新它.(截至2016-07-08,最新的HAXM版本为6.0.3).
然后,在Mac上,Android SDK安装在:/Users/username/Library/Android/sdk/,因此,您需要以sudo身份运行脚本,如下所示:
sudo sh ~/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager/silent_install.sh
如果一切顺利,脚本将打印消息: "Silent installation Pass!"
然后,重新启动Android Studio并使用所需的AVD运行您的应用.
| 归档时间: |
|
| 查看次数: |
11475 次 |
| 最近记录: |