无法安装用于Android Studio的英特尔HAXM.错误x86仿真当前需要硬件加速 [英] Can't install Intel HAXM for Android Studio. ERROR x86 emulation currently requires hardware acceleration

查看:198
本文介绍了无法安装用于Android Studio的英特尔HAXM.错误x86仿真当前需要硬件加速的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚安装了 Android Studio ,没有任何问题.但是当我运行模拟器时,出现错误:

I just installed Android Studio without any problems. But when I run the emulator, I get an error:

无法在模拟器中启动AVD.输出:仿真器仿真器:错误:x86仿真当前需要硬件加速! 请确保正确安装了英特尔HAXM并可以使用它. CPU加速状态:未安装HAX内核模块!

Cannot Launch AVD in emulator. Output: emulator 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!

我发现了很多类似的帖子,并且尝试了一些方法,但到目前为止没有任何效果,所以我决定发表一个帖子.

I have found a lot of similar posts and I have tried a few things but nothing has worked so far so I decided to make a post.

我尝试过的事情:

  1. 通过 Android Studio
  2. 安装 HAXM
  3. 通过 英特尔

第二个选项出现的错误是

The error I get for the second option is

此计算机符合HAXM的要求,但是intel VT-x尚未打开.在启用VT-x之前,无法安装HAXM

This computer meets the requirements for HAXM, but intel VT-x is not turned on. HAXM cannot be installed until VT-x is enabled

所以我进入我的BIOS,但是它已经打开了,所以我在那儿无能为力.

So I went into my BIOS but it was already turned on so nothing else I can do there.

有什么建议吗?

推荐答案

HAXM 代表硬件加速执行管理器".它用于启动仿真器,必须已安装且处于可用状态.

HAXM stands for "Hardware Accelerated Execution Manager". It is used for launching Emulators and must be installed and in usable status.

请注意,启动仿真器意味着虚拟化.因此,我们需要确保在我们的计算机中启用了Intel硬件以启动虚拟化技术(VT).

Please note that, Emulator launching means Virtualisation. So, we need to ensure that Intel Hardware to launch Virtualisation Technology(VT) is enabled in our machine.

所以,这里有两件事

  1. 是否已安装HAXM并启用了VT?
  2. HAXM可用吗?

以下是步骤:

步骤1).确保已安装HAXM.

Step.1) Ensure that HAXM is installed.

在Eclipse环境中.

在Android SDK环境中(单击"SDK管理器==> SDK工具选项卡")

In Android SDK env. (Click "SDK Manager ==> SDK tools tab")

关闭您的Eclipse/Android SDK IDE. 请注意,在此阶段仅下载安装程序,而未实际安装.

Close your Eclipse/Android SDK IDE. Please note only the installer is downloaded at this stage and not actually installed.

步骤2).启动安装程序. Android SDK路径:==> C:\ users \ username \ AppData \ Local \ Android \ sdk.在此目录中,转到Extras→Intel→Hardware_Accelerated_Execution_Manager,然后运行名为"intelhaxm-android.exe"的文件. 在大多数情况下,应该启动安装程序启动器.但是在某些情况下,您可能会遇到此错误:

Step.2) Launch the installer. Android SDK path:==> C:\users\username\AppData\Local\Android\sdk. In this directory, go to extras → Intel → Hardware_Accelerated_Execution_Manager and run the file named "intelhaxm-android.exe". In most of cases, installer launcher should launch. But in some cases, you may encouter this error:

只需确保您的计算机已启用了硬件虚拟化技术(VT). 重新启动计算机,并继续按F1 + F2的BIOS选项和启用VT",如下所示. 再次重复步骤2)

Just make sure that your machine has Hardware Virtualisation Technology(VT) Enabled. Restart your machine, and keep pressing F1+F2 for BIOS option and Enable VT as follow. Again repeat Step.2)

第3步) 重新启动机器.

a.)转到控制面板→程序和功能.

a.) Go to Control Panel → Program and Feature.

b.)单击打开和关闭窗口功能".打开一个窗口.

b.) Click on Turn Window Features on and off. A window opens.

c.)取消选中Hyper-V选项,然后重新启动系统.

c.) Uncheck Hyper-V option and restart your system.

现在,您可以开始安装HAXM,而不会出现任何错误.

Now, you can Start HAXM installation without any error.

然后启动模拟器.

感谢提前提出答案!

这篇关于无法安装用于Android Studio的英特尔HAXM.错误x86仿真当前需要硬件加速的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆