Hardware acceleration for Android Studio not working

2.3k views Asked by At

I'm on a Hp dm4 Intel Core i5 machine with Windows 7. My Android Studio gives me the following error when I compile my application.

enter image description here

After some Googling I found that I have to install Intel Hardware Accelerated Executed Manager that comes with Android SDK. But when I try to do that I get this error.

enter image description here

Does this somehow relate to Hardware Virtualization? I already have it enabled from the BIOS.

enter image description here

I don't understand what the problem is. Please help!

EDIT: I downloaded the Windows Hardware-Assisted Virtualization Detection Toolfrom the Microsoft website and it says everything is fine. This is crazy!

enter image description here

6

There are 6 answers

2
sach On

It involves two steps:

  1. enabling virtualization technology : I supposed you did it right.
  2. disabling hyper-V : For this , please refer the below video link:

disabling hyper-v

If it doesn't work out please follow the blog mentioned below.

https://software.intel.com/en-us/forums/topic/518041

0
Cristiana Chavez On

Virtualization Technology is enabled at the BIOS level means feature will be functional. Try to check this video https://software.intel.com/en-us/videos/setting-up-intel-haxm-on-windows

also try to go BIOS - Advanced and Enable "No Execute (NX) Memory Protection" feature. For me after the change it's working very fine.

0
jrub On

Make sure you can use virtualization at the OS level - check it with this tool: http://www.microsoft.com/en-us/download/details.aspx?id=592

Also, I would suggest using Genymotion https://www.genymotion.com instead of the official emulators, as it's way more faster.

1
Azim Ansari On

If you are using Avast Antivirus. Disable hardware virtualization from Avast settings. Avast uses hardware virtualization to improve performance.

In Avast!, go to Settings -> Troubleshooting -> disable Hardware-Assisted Virtualization -> Reboot your machine.

--> Install HAXM

-->Enable Avast virtualization again

It worked for me

1
Shekhar On

You need to go In BIOS - Advanced and enable the "No Execute (NX) Memory Protection" feature. Hope it helps.

0
marco On

Just for information: I tried to install android 9 on a virtual nexus 5 device, and the option "hardware acceleration" was not available, only "automatic". I solved installing android 8 in a virtual nexus 6. I still don't know if it is a problem related to android 9, or compatibility between A9 and N5, since I am a very beginner in this, but maybe this can help somebody else.