This question already has answers here:
Intel HAXM installation error - This computer does not support Intel Virtualization Technology (VT-x)
(18 answers)
Closed 12 months ago.
While installing Android Studio, I got the error that HAXM didn't install.. so i tried installing haxm using the solutions provided in stackoverflow, youtube etc.. but its not working.
I have enabled virtualization(screenshot) etc.. still this error. [I have intel i5 11th gen, 16GB RAM, Windows 11]
it is showing vmx supported : no in your screenshot, check virtualization is supported on not by your processor (just google your processor series and look for specs)
if it supports
see virtualization is enabled or not quick check : open task manager, click performance tab it will show virtualization is enabled or not
disable Hyper-V
follow this guide
Configure hardware acceleration for the Android Emulator
Related
I have been trying to build some app with my laptop through the help from Android Studio. But before I am able to create a new virtual device (running the emulators), the system told me that "Your CPU does not support required features (VT-x or SVM)".
However, when I use CMD to check, it show that Virtualization Enabled in Firmware = yes. Thus, what exactly is VT-x or SVM? How should I do to be able to continue writing for app.
MY PROCESSER : AMD Ryzen 7 2700X
MY SYSTEM : Windows 10
LAPTOP BRAND: LENOVO YOGA 530-14ARR
I am Facing this error recently. Everything was fine i was learning android studio and suddenly out of nowhere this hit me up.
****Emulator: Warning: Quick Boot / Snapshots not supported on this machine. A CPU with EPT + UG features is currently needed. We will address this in a future release.****
This error made me to delete my virtual device and create a new one. Then it became too slow to start and run the applications. I am running an i5 - 4570 with 8 gigs of ram and a NVIDIA GT 610. I have installed HAXM and virtualization is enabled.Please help me through this.
Kudos.
This error means that your CPU do not have right configuration the INTEL VTX technology in your PC.
Android recommend this steps:
https://developer.android.com/studio/run/device
Is more reliable in some cases use a physical device via USB instead of emulator.
Really trying to not create a duplicate.
I've read the closest SO on this and it is quite old:
Android Studio and Ryzen CPU?
It's time to upgrade my hardware since my i7, 8GB RAM laptop can no longer run Android Studio and the emulator at the same time (major memory issues). Unfortunately, my laptop can only go to 8GB.
I am definitely considering a Ryzen 5 or 7 since I can save so much $$$ (compared to similar Intel choices).
On Ryzen, can I run the normal HAXM emulator? The one I'm used to running on my i7? Or do I have to run something different?
Does anyone have comparison stats? My i7 starts the emulator just about instantly on my i7. But I can no longer run the emulator and android Studio (AS) at the same time (due to RAM being eaten up by AS and associated Java runtimes).
Is running on the Ryzen not solid? Am I going to see a lot of crashes? Is it going to be so slow it drives me crazy? If not I'd rather pay the extra for the Intel chip?
Hope someone out there is an Android dev and has experience to share.
Win10 Version?
Also, I just read the requirements for Hyper-V. I'm running Windows Home edition. Do I need Windows Pro or Enterprise to run with Ryzen 5/7? Will I be required to use Hyper-V?
The following is from : https://learn.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v
Windows 10 Enterprise, Pro, or Education
64-bit Processor with Second Level Address Translation (SLAT).
CPU support for VM Monitor Mode Extension (VT-c on Intel CPUs).
Minimum of 4 GB memory.
The Hyper-V role cannot be installed on Windows 10 Home.
I found the following information from July 09, 2018 (a while ago and AS 3.2 was out) that seems to indicate that :
1. Android emulator is supported and will run with AMD Ryzen chips
2. You will need to turn on Windows HyperVisor Platform (which should be available via Windows 10 Home)
https://android-developers.googleblog.com/2018/07/android-emulator-amd-processor-hyper-v.html
It also states (my emphasis shown where I am confused -- not sure what Hyper-V running at same time gives me) :
If you want to use Hyper-V at the same time as the Android Emulator
on your Intel processor-based computer, you will also need the same
Android Studio and Android Emulator versions as listed above, but with
the additional requirements:
Enable via Windows Features: "Hyper-V" - Only available for Windows 10 Professional/Education/Enterprise
Intel Processor : Intel® Core™ processor that supports Virtualization Technology (VT-x), Extended Page Tables (EPT), and
Unrestricted Guest (UG) features. Additionally VT-x needs to be
enabled in the BIOS.
More Info - Definitive Answer
My son has a machine with Gigabyte m/b and a Ryzen 5 2600x and we installed Android Studio 3.5 and made the appropriate changes tonight.
The board / CPU supports SVM (virtualization technology) so we made
that change in the BIOS.
Next we turned on the Win10 setting for Windows HyperVisor Platform.
We downloaded an x86 Oreo image via Android Studio / AVD Manager and ran it and it runs very fast and smoothly on that machine (16GB RAM).
We didn't see any problems. Loaded up a basic template app and deployed it to the Android VM and it ran great. It all looks good to me. Support for Ryzen seems to be just fine. I will be buying a board and Ryzen just like his.
Update - 2020-03-23
I did purchase the Gigabyte mainboard and the Ryzen 5 2600x and I've been running it for over 6 months now and running current versions of Android Studio (keeping it updated) during that time.
I have 16GB RAM and the CPU can run Android Studio and at least two emulators running at the same time with no problems at all.
Ubuntu Linux / Windows 10 Home Edition Dual Boot
I dual boot my machine running Ubuntu and Win10. I run Ubuntu 90% of the time because Android Studio runs so smoothly on it, but I also boot in to Win10 and Android Studio runs fine there too. (Home edition works fine.)
This confirms that the AMD processors work completely fine running the Android emulators.
I have an Intel Core i5 6400 CPU installed on ASUS Z-170A mainboard. According to the documentation of my CPU, this CPU support Intel Virtualization Technology (VT-X). I have Windows 10 Pro on my PC and using Intel(R) Processor Identification Utility by Intel and it reports that my CPU does not support VT-X.
This caused so many problems such as I cannot install HAXM for Android on my CPU due to lack of VT-X. I should notice that I've enabled VT-x on my BIOS settings. I also checked that memory integrity is disabled in my windows defender settings.
To enable VT-x besides of enabling it in BIOS, uses should Disable Windows Defender Credential Guard as below:
Run gpedit.msc and then go to:
Computer Configuration -> Administrative Templates -> System -> Device Guard -> Turn on Virtualization Based Security
and select Disabled option.
Then run regedit and delete these keys if they are present in registery:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\LSA\LsaCfgFlags
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\DeviceGuard\EnableVirtualizationBasedSecurity
HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\DeviceGuard\RequirePlatformSecurityFeatures
Execute cmd as administrator and run below command to enable NX bit:
bcdedit.exe /set {current} nx AlwaysOn
For me, the magic part was this. run regedit and in folder:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\DeviceGuard\Scenarios\HypervisorEnforcedCodeIntegrity
set Enabled to 0.
Here is the result:
P.S. Great thanks to Ulises2k for his/her answer at https://social.technet.microsoft.com/Forums/windows/en-US/8004c3bd-7d57-40ce-93de-0b1a6babd64c/how-i-can-disable-credential-guard?forum=win10itprovirt which helped me for part 4 of this answer.
I know there are a lot of similar questions out there, and I am new to Android world. I get the following errors as I try to run app (Shift + F10)
Intel HAXM is required to run this AVD.
Your CPU does not support VT-x.
Unfortunately, your computer does not support hardware accelerated virtualization.
Here are some of your options:
User a physical device for testing
Develop on a windows/osx computer with an intel processor that supports VT-x and NX
Develop on a linux computer that supports VT-x or SVM
Use an Android Virtual Device Based on an ARM system image
(This is 10x slower that hardware accelerated virtualization)
When I do dxdiag on this computer(windows 10) I get the following. Its long but the system information is as below. I am not able to determine if my PC can be used to develop android application. Can someone please help me? Is virtualization required to develop android apps?
In here it is suggested that we have to enable VT-x in bios, but I dont see anything of that sort in my bios. Is there a way out of my predicament?
System Information
Time of this report: 12/29/2016, 15:24:38
Machine name: DESKTOP-DTQ75J3
Machine Id: {8D78413A-33B7-4359-BB61-8841CC747D2C}
Operating System: Windows 10 Enterprise 64-bit (10.0, Build 14393) (14393.rs1_release_inmarket.161208-2252)
Language: English (Regional Setting: English)
System Manufacturer: Gigabyte Technology Co., Ltd.
System Model: G41M-Combo
BIOS: Award Modular BIOS v6.00PG
Processor: Intel(R) Core(TM)2 Duo CPU E7400 # 2.80GHz (2 CPUs), ~2.8GHz
Memory: 4096MB RAM
Available OS Memory: 4060MB RAM
Page File: 4199MB used, 2548MB available
Windows Dir: C:\WINDOWS
DirectX Version: DirectX 12
DX Setup Parameters: Not found
User DPI Setting: Using System DPI
System DPI Setting: 96 DPI (100 percent)
DWM DPI Scaling: Disabled
Miracast: Not Available
Microsoft Graphics Hybrid: Not Supported
DxDiag Version: 10.00.14393.0000 64bit Unicode
Make an AVD With ARM Instead of HAXM -
Go to Tools -> Android -> AVD Manager
Click "Create Virtual Device"
Select which device you want to use from the list (i.e Nexus 5) and click "Next".
Here you're given a list of android release versions. Look at the ABI column. "Armeabi-v7a" ABI is what to look for, for whichever API Level you want.
Hit "Next" and modify name/size if you want, click "Finish" when done.
Courtesy: user2636417's answer to "Android Studio - How Can I Make an AVD With ARM Instead of HAXM?"
According to Android Documentation, to run an emulator the development system's CPU should support one of the following virtualization extensions technologies:
Intel Virtualization Technology (VT, VT-x, vmx)
AMD Virtualization (AMD-V, SVM) -- only supported for Linux
Your CPU is Intel(R) Core(TM)2 Duo CPU E7400, which according to the manufacturer may or may not support Intel Virtualization Technology (VT-x). For example, SLGW3 has VT-x, while the SLB9Y and SLGQ8 do not. Looks like your particular CPU doesn't have VT-x, hence the error.
The workaround is to use an alternative Android Emulator, e.g. Genymotion.