无法打开HAX设备! HAX无法正常工作,仿真器在仿真模式仿真器中运行

时间:2021-12-09 14:51:51

My Android emulator is running properly but it is showing this error every time I start the emulator.

我的Android模拟器运行正常但每次启动模拟器时都会显示此错误。

Starting emulator for AVD AVD_for_Nexus_4 emulator: Failed to open the HAX device! HAX is not working and emulator runs in emulation mode emulator: Open HAX device failed emulator: emulator window was out of view and was recentered

启动AVD AVD_for_Nexus_4仿真器的仿真器:无法打开HAX设备! HAX无法运行,仿真器在仿真模式仿真器中运行:打开HAX设备失败仿真器:仿真器窗口不在视图中并被重新定位

I do not understand what is the exact problem.

我不明白究竟是什么问题。

8 个解决方案

#1


66  

I think you are trying to run an emulator based on x86. I got the same error when I just download the HAXM under Extras category of Android SDK Manager. Actually, you need install it. Go to the directory of extras and run the installation of HAXM. Hope this will solve your problem.

我想你正在尝试运行基于x86的模拟器。当我在Android SDK Manager的Extras类别下载HAXM时,我遇到了同样的错误。实际上,你需要安装它。转到临时目录并运行HAXM的安装。希望这能解决你的问题。

#2


23  

The solution of Rohan will fix the problem as the error message will not be shown but the emulator will not use the hardware acceleration and thus be again very slow.

Rohan的解决方案将解决问题,因为错误消息将不会显示,但模拟器将不会使用硬件加速,因此再次非常慢。

I recommend instead to install the Intel Hardware Accelerated Execution Manager as described here:

我建议安装英特尔硬件加速执行管理器,如下所述:

https://*.com/a/10772162/891479

https://*.com/a/10772162/891479

#3


15  

I had the same problem recently.

我最近遇到了同样的问题。

First you need to install HAXM in the Android SDK Manager (from the error message I think you already did that). This will enable the emulator to use the HAXM framework, and for this it needs to open the HAX device. On your system this cannot be found, hence the error message.

首先,您需要在Android SDK Manager中安装HAXM(从我认为您已经这样做的错误消息)。这将使仿真器能够使用HAXM框架,为此需要打开HAX设备。在您的系统上找不到,因此出现错误消息。

To make this device available, you need to install the HAXM driver from Intel. You can find it here: http://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager (You also need to enable virtualization in your computer BIOS).

要使此设备可用,您需要安装Intel的HAXM驱动程序。您可以在此处找到它:http://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager(您还需要在计算机BIOS中启用虚拟化)。

Hope this helps.

希望这可以帮助。

#4


3  

I just had to uninstall HAXM and install it again. Then it started working again. Hope this helps someone!

我只需要卸载HAXM并再次安装它。然后它又开始工作了。希望这有助于某人!

Edit:

编辑:

Oh wow, this was a long time ago. I have been using genymotion for a few months now, and never had any issues like that.

哇,这是很久以前的事了。我已经使用genymotion几个月了,从来没有这样的问题。

#5


3  

If you found “HAX is not working and emulator runs in emulation mode” problem while running android SDK. This mean your computer CPU must be intel core and must support “Hardware Accelerated Execution Manager”. It means that you have configured the emulator in a way which is not supported by your operating system.

如果在运行android SDK时发现“HAX无法正常运行,仿真器在仿真模式下运行”问题。这意味着您的计算机CPU必须是intel核心,并且必须支持“硬件加速执行管理器”。这意味着您已经以操作系统不支持的方式配置了模拟器。

See this link solving the problem http://www.javaexperience.com/hax-is-not-working-and-emulator-runs-in-emulation-mode/#ixzz2p3inMj34

请参阅此链接解决问题http://www.javaexperience.com/hax-is-not-working-and-emulator-runs-in-emulation-mode/#ixzz2p3inMj34

Update : -

更新: -

The link is down at the moment so posting archieved link of the webpage - https://web.archive.org/web/20151024002104/http://www.javaexperience.com/hax-is-not-working-and-emulator-runs-in-emulation-mode/

该链接目前正在关闭,因此发布网页的链接 - https://web.archive.org/web/20151024002104/http://www.javaexperience.com/hax-is-not-working-and-emulator -runs-在仿真模式/

If your CPU isn't intel, then you have to edit your AVD and choose "CPU/ABI" as "ARM". For more details, please visit the link above.

如果您的CPU不是英特尔,那么您必须编辑AVD并选择“CPU / ABI”作为“ARM”。有关详细信息,请访问上面的链接。

#6


1  

I had the same problem. Just after enabling Internet Virtualization from BIOS. After that let the system boot and install HAXM once again. Now emulator will run faster than before and HAXM will work. Enjoy!!

我有同样的问题。刚从BIOS启用Internet虚拟化后。之后让系统再次启动并安装HAXM。现在模拟器将比以前运行得更快,HAXM将工作。请享用!!

#7


1  

Check if the RAM configured in HAX installation is equal or lower than your AVD RAM (How to fix: "HAX is not working and emulator runs in emulation mode") that fixed mine.

检查HAX安装中配置的RAM是否等于或低于固定我的AVD RAM(如何修复:“HAX不工作,仿真器在仿真模式下运行”)。

#8


0  

I had this error and the other fixes didn't help me, but changing the CPU type the emulator used did get it working.

我有这个错误,其他修复程序没有帮助我,但改变使用的模拟器的CPU类型确实让它工作。

Create a new emulator and try using mips or arm for the cpu selection

创建一个新的模拟器并尝试使用mips或arm进行cpu选择

#1


66  

I think you are trying to run an emulator based on x86. I got the same error when I just download the HAXM under Extras category of Android SDK Manager. Actually, you need install it. Go to the directory of extras and run the installation of HAXM. Hope this will solve your problem.

我想你正在尝试运行基于x86的模拟器。当我在Android SDK Manager的Extras类别下载HAXM时,我遇到了同样的错误。实际上,你需要安装它。转到临时目录并运行HAXM的安装。希望这能解决你的问题。

#2


23  

The solution of Rohan will fix the problem as the error message will not be shown but the emulator will not use the hardware acceleration and thus be again very slow.

Rohan的解决方案将解决问题,因为错误消息将不会显示,但模拟器将不会使用硬件加速,因此再次非常慢。

I recommend instead to install the Intel Hardware Accelerated Execution Manager as described here:

我建议安装英特尔硬件加速执行管理器,如下所述:

https://*.com/a/10772162/891479

https://*.com/a/10772162/891479

#3


15  

I had the same problem recently.

我最近遇到了同样的问题。

First you need to install HAXM in the Android SDK Manager (from the error message I think you already did that). This will enable the emulator to use the HAXM framework, and for this it needs to open the HAX device. On your system this cannot be found, hence the error message.

首先,您需要在Android SDK Manager中安装HAXM(从我认为您已经这样做的错误消息)。这将使仿真器能够使用HAXM框架,为此需要打开HAX设备。在您的系统上找不到,因此出现错误消息。

To make this device available, you need to install the HAXM driver from Intel. You can find it here: http://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager (You also need to enable virtualization in your computer BIOS).

要使此设备可用,您需要安装Intel的HAXM驱动程序。您可以在此处找到它:http://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager(您还需要在计算机BIOS中启用虚拟化)。

Hope this helps.

希望这可以帮助。

#4


3  

I just had to uninstall HAXM and install it again. Then it started working again. Hope this helps someone!

我只需要卸载HAXM并再次安装它。然后它又开始工作了。希望这有助于某人!

Edit:

编辑:

Oh wow, this was a long time ago. I have been using genymotion for a few months now, and never had any issues like that.

哇,这是很久以前的事了。我已经使用genymotion几个月了,从来没有这样的问题。

#5


3  

If you found “HAX is not working and emulator runs in emulation mode” problem while running android SDK. This mean your computer CPU must be intel core and must support “Hardware Accelerated Execution Manager”. It means that you have configured the emulator in a way which is not supported by your operating system.

如果在运行android SDK时发现“HAX无法正常运行,仿真器在仿真模式下运行”问题。这意味着您的计算机CPU必须是intel核心,并且必须支持“硬件加速执行管理器”。这意味着您已经以操作系统不支持的方式配置了模拟器。

See this link solving the problem http://www.javaexperience.com/hax-is-not-working-and-emulator-runs-in-emulation-mode/#ixzz2p3inMj34

请参阅此链接解决问题http://www.javaexperience.com/hax-is-not-working-and-emulator-runs-in-emulation-mode/#ixzz2p3inMj34

Update : -

更新: -

The link is down at the moment so posting archieved link of the webpage - https://web.archive.org/web/20151024002104/http://www.javaexperience.com/hax-is-not-working-and-emulator-runs-in-emulation-mode/

该链接目前正在关闭,因此发布网页的链接 - https://web.archive.org/web/20151024002104/http://www.javaexperience.com/hax-is-not-working-and-emulator -runs-在仿真模式/

If your CPU isn't intel, then you have to edit your AVD and choose "CPU/ABI" as "ARM". For more details, please visit the link above.

如果您的CPU不是英特尔,那么您必须编辑AVD并选择“CPU / ABI”作为“ARM”。有关详细信息,请访问上面的链接。

#6


1  

I had the same problem. Just after enabling Internet Virtualization from BIOS. After that let the system boot and install HAXM once again. Now emulator will run faster than before and HAXM will work. Enjoy!!

我有同样的问题。刚从BIOS启用Internet虚拟化后。之后让系统再次启动并安装HAXM。现在模拟器将比以前运行得更快,HAXM将工作。请享用!!

#7


1  

Check if the RAM configured in HAX installation is equal or lower than your AVD RAM (How to fix: "HAX is not working and emulator runs in emulation mode") that fixed mine.

检查HAX安装中配置的RAM是否等于或低于固定我的AVD RAM(如何修复:“HAX不工作,仿真器在仿真模式下运行”)。

#8


0  

I had this error and the other fixes didn't help me, but changing the CPU type the emulator used did get it working.

我有这个错误,其他修复程序没有帮助我,但改变使用的模拟器的CPU类型确实让它工作。

Create a new emulator and try using mips or arm for the cpu selection

创建一个新的模拟器并尝试使用mips或arm进行cpu选择