android - 无法在 Mac 中启动 android 模拟器

标签 android macos android-studio android-emulator

我一直在做一个 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! 

我可以在 Google 和 SO 上找到很多类似问题的解决方案,但我无法将这些解决方案用于 MAC???

我按照 here 给出的所有步骤进行操作但没有运气,仍然无法启动模拟器。我认为这与 mac os 有关。

谁能告诉我如何在 MAC 上执行此操作??

谢谢

最佳答案

首先,确保英特尔 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 运行您的应用。

关于android - 无法在 Mac 中启动 android 模拟器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32044251/

相关文章:

android - 无法使用 adb 从 Bluestacks 应用程序播放器中提取 .apk 文件

java - 致命异常 : main- I have no idea what's wrong

android - 我如何将Gradle降级到4.10.1

Java - 尝试在屏幕上生成单元格,收到 ArrayIndexOutOfBoundsException

android - 在不调用 OnTabSelectedListener 的情况下选择选项卡

macos - Applescript API 文档

xcode - 窗口未显示在窗口菜单中

sql-server - 连接到在并行 VM 中运行的 SQLServer

xml - 尝试在 ANDROID 资源中使用 <!ENTITY,错误为 : "The entity was referenced, but not declared."

android - 错误 : @Component. Builder 缺少 Dagger 2 中所需模块或组件的 setter ,而不是 setter 方法