Android Virtual Device & Intel HAXM - android

I've just set up a new PC with Android Studio, and can't launch any Virtual Devices. When I start a device I get the message-
Starting emulator for AVD 'Nexus_5_API_21_x86'
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!
When I run the HAXM installer, it says
This computer meets the requirements for haxm but intel virtualization is not turned on
But in BIOS its definately ticked as being ON.
Any ideas why I can't get it working ?
Thanks.

so some antivirus prevent HAXM running, and make sure you don't have Windows Hypervisor running. (Under programs list, windows, under H).

It could be you need to set your NX (XD) bit to on. As admin run from command line:
bcdedit /set nx AlwaysOn
Otherwise what is your CPU?

Windows 8. Android Studio.
Make sure if virtualization is enable : go through those steps provided below.
Goto setting -> change pc settings-> general->then see on right side
by scrolling the frame down-> you will see under advance start up
restart now button press it->then choose an option window will
open->choose troubleshoot->under troubleshoot choose Advance
option->then under Advance options choose UEFI Firmware option->then
press restart->press f10 for BIOS->see the menubar where you will
find system configuration menu inside it you will see the
virtualization Technology "enable" it ->now go for exit saving
changes in exit on menu bar..
C:\Users\username\AppData\Local\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm-android.exe
(in username : please enter valid user name)
install it and restart your Android Studio.
if you make few changes on above process it is same for win 7 and also same for eclipse
hope it helps have fun!!

Related

Failed to Run AVD on AndroidStudio 2.1.2 Win7

I'm new to Android, i have downloaded Android studio 2.1.2 and SDK. After reading references from google i wrote HelloWorld application, which can run on my phone.
But due to certain reasons i have to run AVD in AndroidStudio to execute my application. but is shows following error
Intel HAXM is required to run this AVD. /dev/kvm is not found.
Enable VT-x in your BIOS security settings, ensure that your Linux
distro has working KVM module.
Following things i have done so far.
Installation of HAXM manually.
Enabled Virtualization from BIOS.
Some of the references on stackoverflow suggested to uncheck Hyper-V
option in Turn on off windows feature. (i have found nothing like
hyper-V there)
I'm running Windows 7
I'm just stuck here. any help would be highly appreciated.
EDIT:
I have read that Dell Optiplex760 does not support virtualization.
but i can run VirtualBox on my machine. moreover i have seen Virtualization option in BIOS. Also Secureable shows that my system supports Virtualization.
First, reboot you system, press the hot key to enter the BIOS.
enter BIOS
Second, enable the Inter(R) Virtualization Technology and save.
enable VT
Third, start up your computer, enter CMD, input "sc query intelhaxm" to check the state.
CMD command
Forth, start up your AVD, if error happens like that. Go next step.
error tips
Finally, go into your SDK directory, reintall the intellhaxm-android.exe again, then launch the AVD Monitor.
reinstall haxm
I hope it works.

Unable to run Android Studio Emulator - "(VT-x) is not turned one" when installing HAXm

I've seen many posts similar to my problem, and even though I tried to do the same steps, it still didn't work.
Intel Core i7 - 2670QM CPU # 2.20GHz Windows 10
I need to create an emulator for Android Studio in order to test my apps, but it doesnt work, it says that I need Intel HAXM.
Then I try to install and says (VT-x) is not enable (like in the picture below)
Error while installing HAXM
I've already tried:
(1) Check the BIOS (there is no option in my BIOS about VT-x virtualization, but I've check with the application "coreinfo" that says its actually working on my system.
(2) Disable Hyper-V on Windows (also, I couldn't find this option on "Windows Features" on Windows 10, but I've disabled everything that says Hyper-V in Windows "Services"
(3) I've checked about AVAST.
(4) I've updated my Windows
Thank you guys!!
I just don't get the fact that Windows doesnt show the Hyper-V option, and the BIOS doesnt give VT-x option also, but the Haxm_check says:
"VT support -- yes
NX support -- yes"
You don't mention what OS you're using. Have you tried downloading separate installer rather than install thru Android studio
https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager
also run the bcedit commands to make sure the CPU is enabled, not just capable
bcdedit /set hypervisorlaunchtype off
bcdedit /set nx AlwaysOn
your list shows hypervisor enabled. You should go into control panel>Programs>turn WINDOWS features on/off on the left side. Then whether it's on or off you should still see the HyperV checkbox. Make sure nothing is checked. If it's really off, you should be able to search for HyperV Manager and not find it.

Unable to open emulator

Initally I had the problem
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 installed "Intel X86 Emulator Accelerator (HAXM Installer)".
after that i restarted eclipse
Tried to run my android application by right click-run as -android application
But found that the emulator is not getting started
If you have Windows 8.1 with an Intel Processor and you are trying to install Android Studio you will most likely get the following bug when you try to run the Android emulator:
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!
The best thing to do is first get to your BIOS screen. On Windows 8.1 the way to do that is press the Shift key and restart. (Yep, it's true, it's not the normal Esc, F2 or F10). It really is shift and restart. You MUST be holding shift key down while going to restart or it doesn't work.
Once you do that a few times and actually get a blue screen with some options on it.
You should see Continue, Use a Device, Troubleshoot, Turn off PC:
Pick Troubleshoot
Then you should see Refresh your PC, Reset your PC, Advanced Options:
Pick Advanced Options
Then you should see a screen that says System Restore, System Image Recovery, Startup Repair, Command Prompt, UEFI Firmware settings, Startup Settings:
Pick UEFI Firmwhere settings.
Then it will tell you to restart to change settings and hit the restart button to do so.
Then, you will see a BIOS screen with the menu Information, Configuration, Security, Boot, Exit:
Pick Configuration.
Under Configuration hit arrow down until you get to Intel Virtual Technology.
Enable it.
Then, go to Exist and navigate down to Exit and save changes.
Confirm you want to save changes.
On your Android SDK Manager go to the Extras directory and under that you will see Intel x86 Emulator Accelerator (HAXM installer)
if it is not installed, install it.
If it is installed, it's not really installed quite yet (but if you don't install it first, the next part won't work. Next download the installer from the website separately from here https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager
It will be a zipped file, unzip it and then once unzipped click to install. Don't pick the default values. 1024 mb is not enough memory, do the 1.5Gb option.
If you don't install it right the first time or options don't wok for you, just follow the installation steps again and configure the memory setting. (The only way to change it is to re-install but to pick the option to fix instead of complete re-install).
And after that it worked for me. I found some of the previous things on Stack Overflow but their solutions didn't work so after this maybe it was Intel core specific on windows 8.1.

Unable to start Genymotion virtual device, incompatible CPU

The first time I ran Genymotion virtual device, it had worked. But when I tried running it today, I got this error message
What may have changed from the last time I used it? Will be grateful for any solutions that I can get. Thanks.
My Device Info:
Dell XPS L502X
Sandy Bridge motherboard
Intel Core i5-2410M #2.30 GHz
Windows 7 Professional 64-bit
You need to turn virtualization on.
Reboot the notebook.
Instantly press F10 to enter BIOS settings (or F2 depending on your PC)
Check the settings and look for Intel Virtualization Technology (Aliases: Intel VT-x).
Turn it on then save and exit. You could use F10 to save and exit.
This will enable you to use virtualization and enable VirtualBox. Therefore your emulator will hopefully work.
I've solved my problem just turning off the Hyper-V on Windows Features.
Another way to receive this message is because you are running another application that use VT-x like the Android Emulator from Android Studio. If you open Virtualbox and try to start the VM you will get this error message. Solution: Close the other emulator and try again.
For me the following worked:
Disable/uncheck "Enable VT-x/AMD-v" in the virtual device's Settings-> System -> Acceleration
Execute the following command in cmd opened as administrator to disable hyper-v and then reboot the machine:
bcdedit /set hypervisorlaunchtype off
I don't know why disabling hyper-v from system preferences doesn't work for me, only the command works for me. Also I had to close Docker first to execute the command.
Solution for windows 10: Control Panel → Programs → Turn Windows components on or off.
Uncheck the Hyper-V option and click OK.
in ubuntu
1-Reboot the notebook.
2-enter BIOS (press F10 or F2 )
3-Check enable Intel Virtualization Technology and save and exit.
I've also seen this exact same error dialog (for the first time ever) today after upgrading to the latest versions of both VirtualBox and GenyMotion. Nothing else on my system has changed. It's not the best answer in the world, but after trying a few other suggestions I came across, I found that simply cancelling the dialog and restarting the virtual Genymotion device (either via Android Studio or via the Genymotion console) resolved the problem.
Fix it in Virtualbox directly
Open VirtualBox
If you find a similarly named device "Inaccessible" or any other state than "switched off", stop it or remove it.
Start the device from Genymotion
Feel Happy :)
i just decreased the amount of base memory used by the machine in virtualbox manager settings > System > Base Memory and it worked.
In VirtualBox settings > System disable I/O, EFI, UTC and AMD-V.
And Settings > Network > Promiscuous Mode modify in all.
I've seen this exact same error dialog on the first install. I changed my BIOS settings and it worked but after a month the same error occurred.
My solution:
Open VirtualBox Manager
Settings > Network > Promiscuous Mode
Change from "deny" to "allow"
I had to deactivate 'Memory Integrity' of Windows 10 (1803) 'Core Isolation' Feature of Windows Defender. It is deactivated by default, and for some odd reason I had forgotten I had switched it on recently.
I also checked that in VirtualBox -> Your virtual machine -> Settings -> System -> Acceleration -> 'Enable VT-x/AMD-v' and 'Enable nested paging' are activated, Hyper-V is not installed and virtualization is turned on in BIOS.
There is an explaining article on HowToGeek explaining that aformentioned Memory integrity feature:
https://www.howtogeek.com/357757/what-are-core-isolation-and-memory-integrity-in-windows-10/
I have solved this issue not just by enabling VT-x but also by enabling VT-d (Virtualization Technology for directed I/O) in BIOS
I fixed it in VirtualBox:
Setting > System > Disable checkbox "Nested Paging"
One more correct answer is that recent versions of Genymotion support only 64bit CPU and that will cause the same error.
For me the solution was to close another emulator which was open.
None of the solution worked for me. This is what solved the issue:
Turn on Hyper-V in Windows Features.
Restart PC.
Turn off Hyper-V in Windows Features.
Restart PC.
Boom!
I Had The Same Problem And I Solve It By Turning Off The Hyper -v In Windows Programs And Features. Now I Can Start Any Virtual Device From Both Android Studio And Genymotion.

Android SDK's Intel HAXM disabled after installing Hyper V

I'm developing a suite of mobile apps - specifically Windows Store/Mobile 8 and Android.
Having installed VS2012 and then Monodroid, I was then able to start x86 Android images in the emulator and take advantage of the Intel HAXM acceleration (emulator output confirms HAXM working) to make the VM buttery-smooth.
I then installed the Windows Phone 8 SDK - which enables the Hyper V role - and now the emulator says it can't find HAXM. I then uninstalled and tried to reinstall HAXM, but now it won't - saying that my processor doesn't support it.
The VT-x extensions are still enabled in the BIOS - so I'm thinking that Hyper-V has blocked the Intel HAXM from working.
Of course it's not a killer - but a non-accelerated Android image is considerably slower than one with HAXM enabled - anybody else encountered this problem? Googling isn't bringing up anything obvious...
Update (30th Nov 2012)
Per #alexw's suggestion I tried stopping & disabling Hyper-V; with a restart. It still doesn't work.
I realise the next step is probably to the Windows Phone SDK (and remove Hyper-V) and then try again - to confirm that it really is the presence of Hyper-V. At the moment this is less than convenient - but I'll try and do it soon and update.
The best thing you can do to get HAXM detect VT again, is turning the whole Hyper-V "Feature" off. Open "Control Panel -> "Programs" -> "Turn Windows features on or off" (under "Programs and Features") and locate "Hyper-V", uncheck, reboot.
Looks like Hyper-V and HAXM are mutually exclusive, which is kind of a nuisance, because you even need to reboot twice to enable or disable either feature.
I was in your same case that needed to support Hyper-V and Intel HAXM. Disabling and enabling the feature and then restarting was overkill so I found an alternative solution.
You can create 2 boot entries, one for Windows with the regular configuration of Hyper-V enabled and another one with Hyper-V disabled. I logged in with the second one (Hyper-V disabled) and I was able to install Intel HAXM.
To accomplish this you need:
Open a command prompt as Administrator
Enter the command: bcdedit /copy {current} /d "Windows 8 - No Hyper-V"
This will output an id with the format {GUID} that you need to copy it to use it in the next command.
Enter the command: bcdedit /set { copied GUID of step 3 } hypervisorlaunchtype off
More details in this post.
I had a similar problem installing HAXM on Windows 8. I did the following with no effect:
Disabled hypervisor using the instructions here (http://blogs.msdn.com/b/virtual_pc_guy/archive/2008/04/14/creating-a-no-hypervisor-boot-entry.aspx)
Double checked that processor supported VT-x and was enabled in BIOS (BIOS said "supported", but there was no option to turn it on
Verified that all Hyper-V services in control panel were stopped (and never automatically started)
Performed a complete shutdown and a cold boot up.
However, I tried installing VirtualBox after the above actions (VirtualBox installed fine) and created a new VM. Running the VM caused my machine to blue screen, but after the reboot HAXM installed fine. Perhaps running VirtualBox flips some sort of flag at the OS level to allow HAXM to install.
I was also running AVAST at that time, and according this (Running the new Intel emulator for Android), that may cause a problem. However, I didn't have to disable AVAST to get HAXM installed.
You could try stopping the Hyper-V service when not needed and re-enabling it when you want to work on a WP8 project. It's a pain but the performance improvement offered by HAXM is immense.
Open services.msc, find the hvboot service (Hyper-V) and stop it. If this doesn't help you may need to disable the service and restart your pc.
I had the same problem. After a long search I found the answer. In my case, I had installed Avast Antivirus, first uninstall avast, reboot your PC, install Haxm, reboot. you can install again antivirus.

Categories

Resources