Android 在 osx Yosemite 上安装 HAXM

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/26455759/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 11:30:24  来源:igfitidea点击:

Installing HAXM on osx Yosemite

androidosx-yosemitehaxm

提问by emmby

I'm following the instructions to install Intel HAXM on OS X.

我正在按照说明在 OS X 上安装英特尔 HAXM。

https://software.intel.com/en-us/android/articles/installation-instructions-for-intel-hardware-accelerated-execution-manager-mac-os-x

https://software.intel.com/en-us/android/articles/installation-instructions-for-intel-hardware-accelerated-execution-manager-mac-os-x

These instructions say to install the driver, and once it's done run kextstat | grep intelto see if it's installed. If not, then run sudo kextload –b com.intel.kext.intelhaxm.

这些说明说要安装驱动程序,完成后运行kextstat | grep intel以查看是否已安装。如果没有,则运行sudo kextload –b com.intel.kext.intelhaxm

However, at least on OS X Yosemite, I get the following error when I run kextload:

但是,至少在 OS X Yosemite 上,运行 kextload 时出现以下错误:

$ kextstat | grep intel

$ sudo kextload –b com.intel.kext.intelhaxm
/Users/mike/–b failed to load - (libkern/kext) not found; check the system/kernel logs for errors or try kextutil(8).
/Users/mike/com.intel.kext.intelhaxm failed to load - (libkern/kext) not found; check the system/kernel logs for errors or try kextutil(8).

What is the proper way to install the HAXM kernel extension on 10.10 Yosemite?

在 10.10 Yosemite 上安装 HAXM 内核扩展的正确方法是什么?

采纳答案by Nimer

Getting IntelHAXM_1.1.1_for_10_9_and_above.dmg from Intels website (https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager) actually solved my issue without the need of setting the boot-args to "kext-dev-mode=1".

从英特尔网站(https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager)获取 IntelHAXM_1.1.1_for_10_9_and_above.dmg实际上解决了我的问题,而无需设置启动-args 到“kext-dev-mode=1”。

回答by emmby

NEW: V1.1.1 that can be found herefix the problem

新:可以在此处找到的 V1.1.1修复问题

OLD METHOD:

旧方法:

Two fixes were necessary to get this to work.

需要进行两次修复才能使其正常工作。

First, the -boption no longer appears to be correct. Instead use -bundle-id.

首先,该-b选项似乎不再正确。而是使用-bundle-id.

Second, if you check in Console.app you will notice

其次,如果你检查 Console.app 你会注意到

ERROR: invalid signature for com.intel.kext.intelhaxm, will not load

To fix this, you must run sudo nvram boot-args="kext-dev-mode=1"and then restart your computer.

要解决此问题,您必须运行sudo nvram boot-args="kext-dev-mode=1"然后重新启动计算机。

In summary:

总之:

  1. Run sudo nvram boot-args="kext-dev-mode=1"
  2. Restart.
  3. Run sudo kextload -bundle-id com.intel.kext.intelhaxm
  1. sudo nvram boot-args="kext-dev-mode=1"
  2. 重新开始。
  3. sudo kextload -bundle-id com.intel.kext.intelhaxm

Thank you to redditfor the answer.

感谢reddit的回答。

NOTE: By running sudo nvram boot-args="kext-dev-mode=1"you will allow ALL UNSIGNED KEXT to be loaded. Know your system.

注意:通过运行,sudo nvram boot-args="kext-dev-mode=1"您将允许加载所有未签名的 KEXT。了解你的系统。

回答by akawer

I had the same issue. I installed the latest release from Intel (24 Oct) and now it works fine!

我遇到过同样的问题。我安装了英特尔的最新版本(10 月 24 日),现在运行正常!

Here is the link:

链接在这里:

https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager-end-user-license-agreement-macosx

https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager-end-user-license-agreement-macosx

回答by Mac

For those running Android Studio and looking for the .dmg of HAXM for Yosemite (10.10) it would be located here:

对于那些运行 Android Studio 并寻找 Yosemite (10.10) 的 HAXM .dmg 的人,它将位于此处:

/Applications/Android Studio.app/sdk/extras/intel/Hardware_Accelerated_Execution_Manager/IntelHAXM_1.1.0_for_10.10.dmg

回答by Abdulhaq P

The approach worked for me.

这种方法对我有用。

MBP 2012 w/ 10.10.5

MBP 2012 w/ 10.10.5

Step 1: Uninstall any HAXM you have.

第 1 步:卸载您拥有的任何 HAXM。

Go to Terminal and Hit.

转到终端并点击。

sudo /Library/Extensions/intelhaxm.kext/Contents/Resources/uninstall.sh

须藤/Library/Extensions/intelhaxm.kext/Contents/Resources/uninstall.sh

Choose 'Y'

选择“Y”

Step 2: Go to the link - ( HAXM github -> Wiki -> HAXM 6.x Release Archive)

第 2 步:转到链接 - ( HAXM github -> Wiki -> HAXM 6.x Release Archive)

https://github.com/intel/haxm/wiki/HAXM-6.x-Release-Archive#HAXM_v621

https://github.com/intel/haxm/wiki/HAXM-6.x-Release-Archive#HAXM_v621

Download as per your preference. For me haxm-macosx_v6_2_1.zipworked like charm.

根据您的喜好下载。对我来说,haxm-macosx_v6_2_1.zip工作就像魅力一样。

Step 3: Extract the zip and proceed with Installation.

第 3 步:解压缩 zip 并继续安装。

Step 4: Go to Terminal and hit

第 4 步:转到终端并点击

kextstat | grep intel

It should populate something like this: (this is what I got in mine.)

它应该填充这样的东西:(这是我得到的。)

  146    0 0xffffff7f82b66000 0x1d000    0x1d000    com.intel.kext.intelhaxm (6.2.1) <7 5 4 3 1>

If you get the similar, You are done. It should be working now. (Well, atleast, it worked for me. )

如果你得到类似的,你就完成了。它现在应该可以工作了。(好吧,至少,它对我有用。)

If it shows blank or showed 'failed to load... ( like the top )', try a different Release from the link.

如果它显示为空白或显示“无法加载...(如顶部)”,请尝试从链接中使用不同的版本。

Reference Image

参考图片

回答by mkayad

Installing the [Android Emulator] has worked for me. It was not installed by default. Android Emulator can be accessed by running the Android SDK/SDK Tools tab as you see:

安装 [Android Emulator] 对我有用。默认情况下未安装它。可以通过运行 Android SDK/SDK Tools 选项卡来访问 Android Emulator,如您所见:

回答by JRL

problem with mac yosemite. first try .... IntelHAXM_1.1.0_for_10.10.dmgbut resolved to IntelHAXM_1.1.1_for_below_10_9.dmg

mac 优胜美地的问题。首先尝试.... IntelHAXM_1.1.0_for_ 10.10.dmg但解析为IntelHAXM_1.1.1_for_below_ 10_9.dmg