Error in launching AVD with AMD processor

2018-12-31 03:41发布

I have Windows 8.1 pro with an AMD processor. I installed the Android SDK and Eclipse. It works but the problem is that when I Create AVD and launch it shows this error:

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 already installed Intel Hardware_Accelerated_Execution_Manager and I have enabled Virtual modulation from the boot menu, but it's still not working.

19条回答
美炸的是我
2楼-- · 2018-12-31 04:27

I waste too much time on this, and none of the previous answers work. I find that Avast is the issue!!! If you have Avast installed in your system, you have to:

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

Restart your PC and install the intelhaxm-android.exe if it is not installed. You can find it in C:\Users\{YOUR USERNAME}\AppData\Local\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager

查看更多
闭嘴吧你
3楼-- · 2018-12-31 04:29

I didn't see any mention about Windows 7, but if you have this OS, you can download the HAXM here...

查看更多
一个人的天荒地老
4楼-- · 2018-12-31 04:30

You need to read (and post) the output of

sc query intelhaxm

as stated on http://developer.android.com/tools/devices/emulator.html#accel-vm

You open a command prompt window by right click on the start menu, choose execute and write 'cmd'.

See also Android Emulator Doesn't Use HAXM .

If you cannot get the emulator to work you might want to try out an easier alternative: Genymotion - http://genymotion.com/

查看更多
冷夜・残月
5楼-- · 2018-12-31 04:32

For AMD processors:

Go to AVD manager and create a new virtual device as an ARM system image.

查看更多
栀子花@的思念
6楼-- · 2018-12-31 04:32

So I am having this issue and it seems that unless you are on Linux you will not be able to use HAXM. [EDIT: this is if you have an AMD chip (non intel) of course as that is the issue]

As stated on the Android Site;

Many modern CPUs provide extensions for running virtual machines (VMs) more efficiently. Taking advantage of these extensions with the Android emulator requires some additional configuration of your development system, but can significantly improve the execution speed. 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:

Intel Virtualization Technology (VT, VT-x, vmx) extensions

> AMD Virtualization (AMD-V, SVM) extensions (only supported for Linux)

As others have mentioned Genymotion may be a solution.

查看更多
裙下三千臣
7楼-- · 2018-12-31 04:32

As many other pointed out, Intel HAXM only supports Intel CPUs. Since Windows 1804 you can use Microsoft's Hyper-V instead of HAXM for the emulator. This also helps people who want to use Hyper-V for virtual machines as you need to disable hyper-v to run haxm.

Short version:

  • install Windows Hypervisor Platform feature
  • Update to Android Emulator 27.2.7 or above
  • put WindowsHypervisorPlatform = on into C:\Users\your-username\.android\advancedFeatures.ini or start emulator or command line with -feature WindowsHypervisorPlatform
  • enable IOMMU in your BIOS settings

Long version with more details:

https://blogs.msdn.microsoft.com/visualstudio/2018/05/08/hyper-v-android-emulator-support/

Requirements docs:

https://docs.microsoft.com/en-us/windows-server/virtualization/hyper-v/system-requirements-for-hyper-v-on-windows

查看更多
登录 后发表回答