仿真器:错误:x86仿真目前需要硬件加速。

时间:2022-04-17 15:54:51

I tried to run my hello world Android Studio application in my computer but got following informations:

我试着在我的电脑上运行我的hello world Android Studio应用程序,但得到了以下信息:

Emulator: ERROR: x86 emulation currently requires hardware acceleration!

仿真器:错误:x86仿真目前需要硬件加速!

Please ensure Intel HAXM is properly installed and usable.

请确保Intel HAXM的安装和使用正确。

CPU acceleration status: HAX kernel module is not installed!

CPU加速状态:HAX内核模块没有安装!

Can you tell me what I can do with the error?

你能告诉我这个错误我能做什么吗?

8 个解决方案

#1


115  

As per this response, the complete steps are:

根据这个反应,完整的步骤如下:

1) Open SDK Manager (In Android Studio, go to Tools > Android > SDK Manager) and Download Intel x86 Emulator Accelerator (HAXM installer) if you haven't.

1)打开SDK管理器(在Android Studio中,到工具> Android > SDK管理器),如果没有,下载Intel x86仿真器加速器(HAXM installer)。

2) Now go to your SDK directory C:\users\%USERNAME%\AppData\Local\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\ and run the file named intelhaxm-android.exe.

2)现在到你的SDK目录C:\用户\%的用户名\AppData\本地\Android\ SDK \ \intel\Hardware_Accelerated_Execution_Manager\并运行名为intelhaxm-android.exe的文件。

In case you get an error like "Intel virtualization technology (vt,vt-x) is not enabled". Go to your BIOS settings and enable Hardware Virtualization.

如果出现“Intel虚拟化技术(vt . vt-x)没有启用”之类的错误。进入您的BIOS设置并启用硬件虚拟化。

3) Restart Android Studio and then try to start the AVD again.

3)重启Android Studio,然后尝试重新启动AVD。

It might take a minute or 2 to show the emulator window.

显示仿真器窗口可能需要一分钟或两分钟。

#2


49  

Install the Intel x86 Emulator Accelerator using the Android SDK Manager

使用Android SDK管理器安装英特尔x86模拟器加速器。

仿真器:错误:x86仿真目前需要硬件加速。

If you have Android Studio installed, you can start the SDK manager via Tools -> Android -> SDK Manager.

如果你安装了Android Studio,你可以通过工具-> Android -> SDK管理器启动SDK管理器。

The Android SDK Manager does not actually install HAXM, it just downloads it. In the top of the Android SDK manager window, you can find where the installer is located on your PC. Please open the subfolder extras\intel\Hardware_Accelerated_Execution_Manager, and run the installer manually: intelhaxm-android.exe.

Android SDK管理器实际上并没有安装HAXM,只是下载它。在Android SDK管理器窗口的顶部,您可以找到安装程序位于您的PC上的位置。请打开子文件夹的附加组件,intel\Hardware_Accelerated_Execution_Manager,并手动运行安装程序:intelhaxm-android.exe。

To use the intel HAXM, you need to have a CPU with virtualization support:

要使用intel HAXM,需要有一个具有虚拟化支持的CPU:

Before attempting to use this type of acceleration, you should first determine if your development system’s CPU supports one of the following virtualization extensions technologies:

在尝试使用这种类型的加速之前,您应该首先确定开发系统的CPU是否支持以下虚拟化扩展技术之一:

  • Intel Virtualization Technology (VT, VT-x, vmx) extensions
  • Intel虚拟化技术(VT, VT-x, vmx)扩展。
  • AMD Virtualization (AMD-V, SVM) extensions (only supported for Linux)
  • AMD的虚拟化(AMD- v, SVM)扩展(只支持Linux)

If your CPU does not have virtualization support, you could use an ARM emulator instead:

如果您的CPU没有虚拟化支持,您可以使用ARM模拟器:

You can edit an existing, or add a new Virtual Device in the Android Virtual device Manager, and change CPU/ABI to ARM. If that option is not available, you may need to change the target API of the Virtual Device, or download an ARM system image for the API version you want using the Android SDK manager.

您可以编辑现有的,或在Android虚拟设备管理器中添加一个新的虚拟设备,并更改CPU/ABI的ARM。如果该选项不可用,您可能需要更改虚拟设备的目标API,或下载使用Android SDK管理器的API版本的ARM系统映像。

#3


13  

Simple Solution :

简单的解决方案:

Open Android SDK manager, on top side you can see the "Android SDK Location" go to that location and follow this path

打开Android SDK管理器,在上面你可以看到“Android SDK定位”到那个位置,然后沿着这条路走。

\extras\intel\Hardware_Accelerated_Execution_Manager

英特尔\配件\ \ Hardware_Accelerated_Execution_Manager

here you will get "intelhaxm-android.exe" install this setup.

这里你将得到“intelhaxm-android”。exe”安装这个设置。

#4


12  

On Mac, the Android SDK gets installed at: /Users/username/Library/Android/sdk/, therefore, you will need to run the script as sudo, as follows:

在Mac上,Android SDK安装在:/用户/用户名/库/Android/ SDK /,因此,您需要运行脚本sudo,如下:

sudo sh /Users/username/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager/silent_install.sh

sudo sh /用户/用户名/图书馆/ Android / sdk /配件/英特尔/ Hardware_Accelerated_Execution_Manager / silent_install.sh

If all goes well, the script prints the message: "Silent installation Pass!"

如果一切顺利,脚本将输出消息:“静默安装通过!”

Then, restart Android Studio and run your app with the desired AVD.

然后,重新启动Android Studio,并运行你的应用程序。

#5


7  

I wasted too much time on this, I find that the AVAST is the issue!!! If you have AVAST installed in you system, you have to:

我浪费了太多的时间在这上面,我发现,AVAST是问题!!!如果你在系统中安装了AVAST,你必须:

Go to settings tab --> troubleshooting, then you should UNCHECK the "enable hardware-assisted virtualization"

转到settings选项卡——>故障排除,然后您应该取消“启用硬件辅助虚拟化”

Restart your PC, the install the intelhaxm-android.exe if it is not installed. You can find it:

重启你的电脑,安装intelhaxm-android。如果没有安装exe。你可以找到它:

C:\Users\{YOURUSERNAME}\AppData\Local\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager

C:\Users\ { YOURUSERNAME } \ AppData \本地Android \ sdk \ \配件\ \ Hardware_Accelerated_Execution_Manager英特尔

#6


6  

Right click on your my computer icon and the CPU will be listed on the properties page. Or open device manager and look at the CPU. It must be an Intel processor that supports VT and NX bit (XD) - you can check your CPU # at http://ark.intel.com
Also make sure hyperV off bcdedit /set hypervisorlaunchtype off
XD bit is on bcdedit /set nx AlwaysOn
Use the installer from https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager
If you're using Avast, disable "Enable hardware-assisted virtualization" under: Settings > Troubleshooting. Restart the PC and try to run the HAXM installation again

右键单击你的电脑图标,CPU将被列在属性页上。或者打开设备管理器,查看CPU。它必须是一个英特尔处理器,支持VT和NX(XD)——你可以检查你的CPU #还在http://ark.intel.com上确保hyperV bcdedit /设置hypervisorlaunchtype了XD位bcdedit /集NX AlwaysOn使用安装程序从https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager如果你使用停住,禁用“允许借助硬件虚拟化”下:设置>故障排除。重新启动PC,并尝试再次运行HAXM安装。

#7


2  

Directly download Intel HAXM from intel site

直接从英特尔网站下载Intel HAXM。

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

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

#8


0  

This steps worked on Mint 17.2 Rafaela:

这些步骤在Mint 17.2 Rafaela:

  1. Open a terminal and input this: sudo apt-get install qemu-kvm
  2. 打开终端并输入:sudo apt-get安装qemu-kvm。
  3. Restart your pc and enable virtualization technology on your BIOS setup
  4. 重新启动您的pc,并在BIOS设置中启用虚拟化技术。
  5. In terminal again, insert this: sudo kvm-ok
  6. 在终端,插入这个:sudo kvm-ok。

#1


115  

As per this response, the complete steps are:

根据这个反应,完整的步骤如下:

1) Open SDK Manager (In Android Studio, go to Tools > Android > SDK Manager) and Download Intel x86 Emulator Accelerator (HAXM installer) if you haven't.

1)打开SDK管理器(在Android Studio中,到工具> Android > SDK管理器),如果没有,下载Intel x86仿真器加速器(HAXM installer)。

2) Now go to your SDK directory C:\users\%USERNAME%\AppData\Local\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\ and run the file named intelhaxm-android.exe.

2)现在到你的SDK目录C:\用户\%的用户名\AppData\本地\Android\ SDK \ \intel\Hardware_Accelerated_Execution_Manager\并运行名为intelhaxm-android.exe的文件。

In case you get an error like "Intel virtualization technology (vt,vt-x) is not enabled". Go to your BIOS settings and enable Hardware Virtualization.

如果出现“Intel虚拟化技术(vt . vt-x)没有启用”之类的错误。进入您的BIOS设置并启用硬件虚拟化。

3) Restart Android Studio and then try to start the AVD again.

3)重启Android Studio,然后尝试重新启动AVD。

It might take a minute or 2 to show the emulator window.

显示仿真器窗口可能需要一分钟或两分钟。

#2


49  

Install the Intel x86 Emulator Accelerator using the Android SDK Manager

使用Android SDK管理器安装英特尔x86模拟器加速器。

仿真器:错误:x86仿真目前需要硬件加速。

If you have Android Studio installed, you can start the SDK manager via Tools -> Android -> SDK Manager.

如果你安装了Android Studio,你可以通过工具-> Android -> SDK管理器启动SDK管理器。

The Android SDK Manager does not actually install HAXM, it just downloads it. In the top of the Android SDK manager window, you can find where the installer is located on your PC. Please open the subfolder extras\intel\Hardware_Accelerated_Execution_Manager, and run the installer manually: intelhaxm-android.exe.

Android SDK管理器实际上并没有安装HAXM,只是下载它。在Android SDK管理器窗口的顶部,您可以找到安装程序位于您的PC上的位置。请打开子文件夹的附加组件,intel\Hardware_Accelerated_Execution_Manager,并手动运行安装程序:intelhaxm-android.exe。

To use the intel HAXM, you need to have a CPU with virtualization support:

要使用intel HAXM,需要有一个具有虚拟化支持的CPU:

Before attempting to use this type of acceleration, you should first determine if your development system’s CPU supports one of the following virtualization extensions technologies:

在尝试使用这种类型的加速之前,您应该首先确定开发系统的CPU是否支持以下虚拟化扩展技术之一:

  • Intel Virtualization Technology (VT, VT-x, vmx) extensions
  • Intel虚拟化技术(VT, VT-x, vmx)扩展。
  • AMD Virtualization (AMD-V, SVM) extensions (only supported for Linux)
  • AMD的虚拟化(AMD- v, SVM)扩展(只支持Linux)

If your CPU does not have virtualization support, you could use an ARM emulator instead:

如果您的CPU没有虚拟化支持,您可以使用ARM模拟器:

You can edit an existing, or add a new Virtual Device in the Android Virtual device Manager, and change CPU/ABI to ARM. If that option is not available, you may need to change the target API of the Virtual Device, or download an ARM system image for the API version you want using the Android SDK manager.

您可以编辑现有的,或在Android虚拟设备管理器中添加一个新的虚拟设备,并更改CPU/ABI的ARM。如果该选项不可用,您可能需要更改虚拟设备的目标API,或下载使用Android SDK管理器的API版本的ARM系统映像。

#3


13  

Simple Solution :

简单的解决方案:

Open Android SDK manager, on top side you can see the "Android SDK Location" go to that location and follow this path

打开Android SDK管理器,在上面你可以看到“Android SDK定位”到那个位置,然后沿着这条路走。

\extras\intel\Hardware_Accelerated_Execution_Manager

英特尔\配件\ \ Hardware_Accelerated_Execution_Manager

here you will get "intelhaxm-android.exe" install this setup.

这里你将得到“intelhaxm-android”。exe”安装这个设置。

#4


12  

On Mac, the Android SDK gets installed at: /Users/username/Library/Android/sdk/, therefore, you will need to run the script as sudo, as follows:

在Mac上,Android SDK安装在:/用户/用户名/库/Android/ SDK /,因此,您需要运行脚本sudo,如下:

sudo sh /Users/username/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager/silent_install.sh

sudo sh /用户/用户名/图书馆/ Android / sdk /配件/英特尔/ Hardware_Accelerated_Execution_Manager / silent_install.sh

If all goes well, the script prints the message: "Silent installation Pass!"

如果一切顺利,脚本将输出消息:“静默安装通过!”

Then, restart Android Studio and run your app with the desired AVD.

然后,重新启动Android Studio,并运行你的应用程序。

#5


7  

I wasted too much time on this, I find that the AVAST is the issue!!! If you have AVAST installed in you system, you have to:

我浪费了太多的时间在这上面,我发现,AVAST是问题!!!如果你在系统中安装了AVAST,你必须:

Go to settings tab --> troubleshooting, then you should UNCHECK the "enable hardware-assisted virtualization"

转到settings选项卡——>故障排除,然后您应该取消“启用硬件辅助虚拟化”

Restart your PC, the install the intelhaxm-android.exe if it is not installed. You can find it:

重启你的电脑,安装intelhaxm-android。如果没有安装exe。你可以找到它:

C:\Users\{YOURUSERNAME}\AppData\Local\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager

C:\Users\ { YOURUSERNAME } \ AppData \本地Android \ sdk \ \配件\ \ Hardware_Accelerated_Execution_Manager英特尔

#6


6  

Right click on your my computer icon and the CPU will be listed on the properties page. Or open device manager and look at the CPU. It must be an Intel processor that supports VT and NX bit (XD) - you can check your CPU # at http://ark.intel.com
Also make sure hyperV off bcdedit /set hypervisorlaunchtype off
XD bit is on bcdedit /set nx AlwaysOn
Use the installer from https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager
If you're using Avast, disable "Enable hardware-assisted virtualization" under: Settings > Troubleshooting. Restart the PC and try to run the HAXM installation again

右键单击你的电脑图标,CPU将被列在属性页上。或者打开设备管理器,查看CPU。它必须是一个英特尔处理器,支持VT和NX(XD)——你可以检查你的CPU #还在http://ark.intel.com上确保hyperV bcdedit /设置hypervisorlaunchtype了XD位bcdedit /集NX AlwaysOn使用安装程序从https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager如果你使用停住,禁用“允许借助硬件虚拟化”下:设置>故障排除。重新启动PC,并尝试再次运行HAXM安装。

#7


2  

Directly download Intel HAXM from intel site

直接从英特尔网站下载Intel HAXM。

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

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

#8


0  

This steps worked on Mint 17.2 Rafaela:

这些步骤在Mint 17.2 Rafaela:

  1. Open a terminal and input this: sudo apt-get install qemu-kvm
  2. 打开终端并输入:sudo apt-get安装qemu-kvm。
  3. Restart your pc and enable virtualization technology on your BIOS setup
  4. 重新启动您的pc,并在BIOS设置中启用虚拟化技术。
  5. In terminal again, insert this: sudo kvm-ok
  6. 在终端,插入这个:sudo kvm-ok。