运行适用于 Android 的全新英特尔模拟器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10761696/
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 04:51:41  来源:igfitidea点击:

Running the new Intel emulator for Android

androidsdkandroid-emulatorintelavd

提问by android developer

Lately Google and Intel have published a new way to run the emulator, which should work much better than the previous version (which has emulated ARM CPU). Here are some links about it: thisand this.

最近谷歌和英特尔发布了一种运行模拟器的新方法,它应该比以前的版本(模拟 ARM CPU)工作得更好。这里有一些关于它的链接:thisthis

However, after installing the new components and creating a new emulator configuration as instructed, I get an error and I also can't see any improvements. I've tried both API 10 and API 15, and with GPU enabled and disabled. None of those configurations helped. I've also tried it on two different computers and didn't get any boost (and got the same errors).

但是,按照说明安装新组件并创建新的模拟器配置后,我收到错误消息,也看不到任何改进。我已经尝试了 API 10 和 API 15,并且启用和禁用了 GPU。这些配置都没有帮助。我也在两台不同的计算机上尝试过,但没有得到任何提升(并且出现相同的错误)。

It seems that on the posts I've read about it, nobody had any problems with it and all report a much faster emulator.

似乎在我读过的帖子中,没有人对它有任何问题,并且都报告了一个更快的模拟器。

The error it shows is:

它显示的错误是:

emulator: Failed to open the HAX device!
HAX is not working and emulator runs in emulation mode
emulator: Open HAX device failed

Why is it happening, and is there a way to fix it? Is there anyone else who gets those errors or vice versa?

为什么会发生这种情况,有没有办法解决它?有没有其他人得到这些错误,反之亦然?

By the way, I have an Intel CPU, if that could be a problem.

顺便说一句,我有一个英特尔 CPU,如果这可能是一个问题。



EDIT:

编辑:

here's what I see in the BIOS, so it should be available... :

这是我在 BIOS 中看到的内容,因此它应该可用...:

enter image description here

在此处输入图片说明

回答by rallrall

I had the same issue, solved it by Installing the Intel Hardware Accelerated Execution Manager. Download it with the SDK Manager, it's in Extras. After this, go to the folder

我遇到了同样的问题,通过安装英特尔硬件加速执行管理器解决了它。使用 SDK Manager 下载它,它在 Extras 中。之后,转到文件夹

[Android SDK Root]\extras\intel\Hardware_Accelerated_Execution_Manager

[Android SDK Root]\extras\intel\Hardware_Accelerated_Execution_Manager

then run IntelHaxm.exeand install.

然后运行IntelHaxm.exe并安装。

Here the link of the Intel Hardware Accelerated IntelHaxm.exefor Microsoft Windows,Mac OS* X, and Linux Ubuntu

这里是适用于 Microsoft Windows、Mac OS* X 和 Linux Ubuntu的英特尔硬件加速IntelHaxm.exe的链接

enter image description here

在此处输入图片说明

You'll get the following message if you don't have virtualization enabled in your BIOS:

如果您的 BIOS 中没有启用虚拟化,您将收到以下消息:

enter image description here

在此处输入图片说明

回答by VeV

Small Note for Windows 8 user, Intel HAX will not work if Hyper-V feature is enable. Hyper-V (like most of the virtualization tech) will exclusively lock the VT extension witch will prevent HAX to work properly. A workaround if you “need” Hyper-V too might be to stop manually the Hyper-V services when you need HAX (haven't tested it yet through).

Windows 8 用户的小提示,如果启用 Hyper-V 功能,Intel HAX 将无法工作。Hyper-V(像大多数虚拟化技术一样)将专门锁定 VT 扩展,从而阻止 HAX 正常工作。如果您也“需要”Hyper-V,一种解决方法可能是在您需要 HAX 时手动停止 Hyper-V 服务(尚未对其进行测试)。

回答by akimsko

If all else fails. Simply try to download the Intel HAXM zip manually, extract and install. check here

如果一切都失败了。只需尝试手动下载英特尔 HAXM zip,解压并安装即可。在这里检查

Remember this only works for an Intel cpu that supports Intel Virtualization Technology. And you MUST enable virtulization in your bios.

请记住,这仅适用于支持英特尔虚拟化技术的英特尔 CPU。并且您必须在您的 bios 中启用虚拟化。

It's a fairly decent and very noticeable improvement to the android emulator if you ask me.

如果您问我,这是对 android 模拟器的相当不错且非常显着的改进。

回答by Gimix

Not every processor is supporting the virtualization!

并非每个处理器都支持虚拟化!

To find out your chipset abilities go to http://ark.intel.com/, insert the name of your processor in the search line and check out the resolve.

要了解您的芯片组能力,请访问http://ark.intel.com/,在搜索行中插入您的处理器名称并查看解析。

Advanced Technologies: ...

Intel? Virtualization Technology (VT-x) = ???

先进技术:...

英特尔?虚拟化技术 (VT-x) = ???

If you see "No", you can forget HAXM!

如果您看到“否”,您可以忘记 HAXM!

回答by Mohamed El-Nakib

Here are the steps to get the Hardware Accelerated Execution (HAX) which is really quite a lot:

以下是获取硬件加速执行 (HAX) 的步骤,这确实非常多:

1-check your processor Intel website to see if it supports Intel VT-x or not: http://ark.intel.com/Products/VirtualizationTechnologyall Intel Core i processors and some other selected processors support Intel VT-x

1-检查您的处理器英特尔网站,看看它是否支持英特尔 VT-x:http: //ark.intel.com/Products/VirtualizationTechnology所有英特尔酷睿 i 处理器和一些其他选定的处理器都支持英特尔 VT-x

2- check your bios to enable Intel VT-x , usually called hardware virtualization or Intel virtualization in bios

2- 检查您的 bios 以启用 Intel VT-x ,通常在 bios 中称为硬件虚拟化或 Intel 虚拟化

3- check if you are using a software conflicting with HAXM, popular software conflicting with haxm include but not limited to:

3-检查您是否使用与HAXM冲突的软件,与haxm冲突的流行软件包括但不限于:

Hyper-V
Windows phone SDK 8
Avast antivirus 8 

4-install Intel management engine interface (MEI), this driver is usually not installed and is not part of retailer Windows DVD, even Windows 8. Check this post about how to install: http://communities.intel.com/community/vproexpert/blog/2011/12/19/mei-driver-now-available-via-microsoft-windows-updateThis driver is required and is not optional to activate Hardware Acceleration you can also install it from windows update

4 安装英特尔管理引擎接口 (MEI),此驱动程序通常未安装,也不属于零售商 Windows DVD 的一部分,即使是 Windows 8。请查看有关如何安装的帖子:http: //communities.intel.com/community/ vproexpert/blog/2011/12/19/mei-driver-now-available-via-microsoft-windows-update此驱动程序是必需的,不是激活硬件加速的可选驱动程序,您也可以从 windows update 安装它

5-use android SDK manager to download Extras -> Intel x86 Hardware Accelerated Execution Manager.

5-使用android SDK manager下载Extras -> Intel x86 Hardware Accelerated Execution Manager。

6-Run installer of HAXM from: [Android SDK Root]\extras\intel\Hardware_Accelerated_Execution_Manager\IntelHaxm.exe

6 从以下位置运行 HAXM 安装程序:[Android SDK Root]\extras\intel\Hardware_Accelerated_Execution_Manager\IntelHaxm.exe

if you passed the previous steps the installer will work just fine ,otherwise it will fail

如果您通过了前面的步骤,安装程序将正常工作,否则将失败

7-start AVD and see the difference in performance, Animations are faster System UI and launchers crashes in 4.0.3 but are just fine for 4.2.2

7 启动 AVD 并查看性能差异,动画更快 系统 UI 和启动器在 4.0.3 中崩溃,但在 4.2.2 中很好

see installation guide by intel:

请参阅英特尔的安装指南:

回答by pajb

Using SDK Manager to download Intel HAX did not work.

使用 SDK Manager 下载英特尔 HAX不起作用

Downloading and installing it from the Intel website did work. http://software.intel.com/en-us/articles/intel-hardware-accelerated-execution-manager/

从英特尔网站下载并安装它确实有效http://software.intel.com/en-us/articles/intel-hardware-accelerated-execution-manager/

Top Tip: making the change in my BIOS to enable virtualization and then using "restart" did not enable virtualization. Doing a cold boot(i.e. shutdown and restart) suddenly made it appear.

重要提示:在我的 BIOS 中进行更改以启用虚拟化,然后使用“重新启动”并没有启用虚拟化。做一个冷启动(即关机和重新启动)突然让它出现。

The first step (on Windows) is to make sure that the Micrsoft Hardware-Assisted Virtualization Tool reports that "this computer is configured with hardware-assisted virtualization". http://www.microsoft.com/en-us/download/details.aspx?id=592

第一步(在 Windows 上)是确保 Micrsoft 硬件辅助虚拟化工具报告“此计算机配置了硬件辅助虚拟化”。 http://www.microsoft.com/en-us/download/details.aspx?id=592

回答by Patrick Tescher

You might need to turn on virtualization in your BIOS, most manufacturers disable it by default. Intel HAX requires CPU virtualization to be enabled.

您可能需要在 BIOS 中打开虚拟化,大多数制造商默认禁用它。Intel HAX 需要启用 CPU 虚拟化。

回答by user1763174

The same began to happen to me about one week ago, without apparent reason (99% sure that I didn't upgrade anything); after being able to run the emulator for some time it just stopped working without an apparent reason.

大约一周前,同样的事情开始发生在我身上,没有明显的原因(99% 确定我没有升级任何东西);在能够运行模拟器一段时间后,它只是在没有明显原因的情况下停止工作。

I tried to install the Intel thingie, but the installer reported that my machine doesn't support Intel VM, despite the fact that it has an Intel i3 processor and that virtualization is enabled (perhaps XP is too old an OS for that, although MS VM, Oracle's Virtual Box and VMWare have been installed an working in this machine with the same OS).

我试图安装 Intel thingie,但安装程序报告说我的机器不支持 Intel VM,尽管它有一个 Intel i3 处理器并且启用了虚拟化(也许 XP 对那个操作系统来说太旧了,尽管 MS VM、Oracle 的Virtual Box 和VMWare 已安装并在具有相同操作系统的本机上运行)。

I just edited the VD to emulate an Arm processor, and everything is working again.

我刚刚编辑了 VD 来模拟 Arm 处理器,一切又恢复正常了。

Perhaps not the optimal solution, but it works!

也许不是最佳解决方案,但它有效!

回答by Jagger

For Windows, there are some answers explained how it works. But I'm a Mac User, I don't know how to install HAX driver for Mac as they did for Windows. Finally I found the below link and it did fix my problem. You should download HAXM of Macand then install it.

对于 Windows,有一些答案解释了它是如何工作的。但是我是 Mac 用户,我不知道如何像在 Windows 上那样为 Mac 安装 HAX 驱动程序。最后我找到了下面的链接,它确实解决了我的问题。您应该下载Mac 的 HAXM,然后安装它。

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

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

回答by Windo

For Mac users who want to check whether your processor supports virtualisation, use the maccpuidsoftware and look for VMX. If it is checked then you're good to go.

对于想要检查您的处理器是否支持虚拟化的 Mac 用户,请使用该maccpuid软件并查找 VMX。如果它被检查,那么你很高兴去。

Download it here

在这里下载

VMX checked is a sign that your processor support virtualisation asked

选中 VMX 表示您的处理器支持虚拟化要求