[android] Enable VT-x in your BIOS security settings (refer to documentation for your computer)

While I was adding a virtual device in my Android Studio, Android Studio is Showing This Error. See This Image: enter image description here .

This question is related to android android-studio haxm

The answer is


No restart, no BIOS needed in my case. I have downloaded and installed the latest version of HAXM from the releases: HAXM releases


HP computer method:

Make sure your BIOS is updated before changing the settings. If you have an HP computer, they have an HP Support Assistant app you can configure to automatically install BIOS updates. Then follow the instructions on how to update BIOS.

Then you can look up which HP computer for how to change the BIOS in a search engine.

For an HP ZBook, follow these steps:

  1. Restart your computer with the shift key pressed (before you click restart) until a menu appears.
  2. Choose BIOS Setup on the screen (or press F10).
  3. Click on Troubleshoot.
  4. Using your arrow keys in this menu, go to Advanced Options.
  5. Select UEFI Firmware Settings.
  6. Select restart.
  7. It reboots into a Startup menu
  8. Choose BIOS Setup With arrow keys go to Advanced tab.
  9. Choose the System Options.
  10. Check both the Virtualization Technology (VTx) and the Virtualization Technology for Directed I/O (VTd) boxes.
  11. Go back to the Main tab and at bottom choose Save and Exit.
  12. Computer will restart.

Check "Virtualization" status under performance option in your task manager. If you already have enabled it in your BIOS and still status is "Disabled", then go to bios, disable it and save & exit. Restart or shut down again. Enable it in BIOS again and save & exit. This time you'll see the status changed to "Enabled", It took me 3 attempts (don't know why it took that much time, but finally it worked).


Just to make it simple: The solution is just to enable vt-x or Virtualization Technology in bios, which is under Advanced Tab. and once it's enabled, the error disappears.Screenshot of bios

FYI I had similar issues starting up my Android emulators in Appium studio for my mobile testing, and on top, I had latest bios, which looked so different to the standard one.
So attaching screenshot of my computer bios, but the option should be there on any Bios settings. Just need to boot the computer, and push Esc or some function key to see the computer bios, and then find the correct option to enable it under Advanced Tab, (most importantly, you may have to scroll down as the option would be down the list) I left my Hyper-V feature as is, which was enabled though.


It was because of docker which uses hyper-v. You just have to remove hyper-v from windows features.


I had similar issues and below is how i fixed it:

  • Restart your PC, when booting up press f10 key to select or open BIOS Settings.
  • Locate and check / enable Virtual Technology-x option under Device Configuration Settings
  • Save changes, system restart.
  • All should be working fine now

Even i have enable VT-X tech and disabled secure boot. My Android Studio failed to load emulator saying dev/kvm not found.

After doing some research on this. Finally i solved it out.

This issue came after updating HAXM. I found some useful answers. which tell this issue is in HAXM 7.2.0. See this issue on github

Steps to solve:

  • Uninstall Haxm from SDK manager.
  • Download previous version of HAXM v7.1.0 from this release page.
  • Install this HAXM.

Now everything should work fine as before.


For Mac users, see this answer:

https://stackoverflow.com/a/47414989/2788608

Essentially, your OS may be blocking Intel from running what it needs to get your AVD going. Go into System Preferences -> Security and Privacy and you should see an option there to enable the Intel processes. Restart Android Studio and you should be good to go.


I guess the same error happened to me after I installed Docker. The solution below worked for me:

  1. Go to Turn Windows features on and off
  2. Uncheck the Hyper-V checkbox

enter image description here

  1. Uninstall Intel Hardware Accelerated Execution Manager via Programs and Features. After the uninstall process, restart your computer (trying to install a new release of HAXM without rebooting didn't work for me).
  2. Go to HAXM GitHub page and download the release. I downloaded HAXM v7.6.5.
  3. Install HAXM

After all these steps, everything is fine for me.


Even after enabling Intel Virtualization Technology (Intel VT-x), I got the error message ' dev/kvm not found ' in Android Studio.by making Hyper-V feature off in Windows 8.1 issue was fixed.

here is how to access Windows Hyper-V feature

Control Panel -> Programs and Features -> Turn Windows features on and off.


Intel HAXM is required to run this AVD. VT-x is disabled in BIOS.

Enable VT-x in your BIOS security settings (refer to documentation for your computer).this error on android studio I dont no how to do Bios Security


In Short -> You must enable VT-x Technology in your BIOS.

Here are the detailed steps:

1- Restore Optimized Defaults (Not Necessary)//Steps to start BIOS

Its better to restore Optimized Defaults before, But following steps are not necessary:

  1. Reboot the computer and open the system's BIOS menu. This can usually be done by pressing the delete key, the F1 key or Alt and F4 keys depending on the system.

  2. Select Restore Defaults or Restore Optimized Defaults, and then select Save & Exit.

2- Enable VT-x Technology in BIOS (Necessary)

  1. Power on/Reboot the machine and open the BIOS (as per Step 1).

  2. Open the Processor submenu The processor settings menu may be hidden in the Chipset, Advanced CPU Configuration or Northbridge.

  3. Enable Intel Virtualization Technology (also known as Intel VT-x) or AMD-V depending on the brand of the processor. The virtualization extensions may be labelled Virtualization Extensions, Vanderpool or various other names depending on the OEM and system BIOS.

  4. Select Save & Exit.

Note: Many of the steps above may vary depending on your motherboard, processor type, chipset and OEM. Refer to your system's accompanying documentation for the correct information on configuring your system.

Test:

Run cat /proc/cpuinfo | grep vmx svm. If the command outputs, the virtualization extensions are now enabled. If there is no output your system may not have the virtualization extensions or the correct BIOS setting enabled.

Detailed instructions can be found Here


Examples related to android

Under what circumstances can I call findViewById with an Options Menu / Action Bar item? How to implement a simple scenario the OO way My eclipse won't open, i download the bundle pack it keeps saying error log getting " (1) no such column: _id10 " error java doesn't run if structure inside of onclick listener Cannot retrieve string(s) from preferences (settings) strange error in my Animation Drawable how to put image in a bundle and pass it to another activity FragmentActivity to Fragment A failure occurred while executing com.android.build.gradle.internal.tasks

Examples related to android-studio

A failure occurred while executing com.android.build.gradle.internal.tasks "Failed to install the following Android SDK packages as some licences have not been accepted" error Android Gradle 5.0 Update:Cause: org.jetbrains.plugins.gradle.tooling.util This version of Android Studio cannot open this project, please retry with Android Studio 3.4 or newer WARNING: API 'variant.getJavaCompile()' is obsolete and has been replaced with 'variant.getJavaCompileProvider()' Flutter plugin not installed error;. When running flutter doctor ADB.exe is obsolete and has serious performance problems Android design support library for API 28 (P) not working Flutter command not found How to find the path of Flutter SDK

Examples related to haxm

Enable VT-x in your BIOS security settings (refer to documentation for your computer) Emulator: ERROR: x86 emulation currently requires hardware acceleration I can't install intel HAXM Intel X86 emulator accelerator (HAXM installer) VT/NX not enabled Error in launching AVD with AMD processor Error during installing HAXM, VT-X not working Intel HAXM installation error - This computer does not support Intel Virtualization Technology (VT-x)