devfish.net .... >««(o>...

developer stuff by Joe Healy

Error: x86 emulation currently requires hardware Acceleration - Android on Windows

IMPORTANT - READ ME - YES YOU: At least for me, the exact ORDER of the steps below was important. I tried updating the driver in Device Manager a couple different ways and continued to get the yellow triangle of doom on my VIVO AIR in Device Manager. Follow the steps below or CAVEAT EMPTOR.

THE OWIE

I ran into quite a interesting situation trying to get the Android emulators running. I installed Android Studio and it seemed to be working great.  But when I attempted to run to the emulator for the first time, specifically to the "API22 Nexus 5" I received a "ERROR: x86 emulation currently requires hardware Acceleration" error. I dug in the tools for the command line for the emulator:

C:\Users\Joe\AppData\Local\Android\sdk1\tools\emulator.exe -netdelay none -netspeed full -avd Nexus_5_API_22_x86

When run, the command gave me a whopper of a confusing error.

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!

Double clicking on emulator in AVD gives same error in popup with the link to http://developer.android.com/tools/devices/emulator.html#acceleration .

Ok, time to troubleshoot. First I used the Android SDK Manager and install HAXM.

Navigate to "sdk\extras\intel" and run the HAXM installer. Oh no, a whole new error message:

VT not supported. This computer does not support Intel Virtualization Technology (VT-x).
HAXM cannot be installed.
Please refer to the Intel HAXM documentation for more information.

SOLUTION

Hyper-V, HAXM? Both emulation technologies running at a low level, yes? Possibly a conflict? So I turn off Hyper-V, try the Android emulator again, and it works. As they say on the Geico commercial, "So I break into my happy dance".

WORKING WITH HYPER-V

The solution to getting Android Studio Emulators working in my World? Turn Hyper-V off. But you may have to turn it back on again. There are two routes to enabling/disabling Hyper-V.

First is the Services administrator program. In Win8/Win10 just type "services", click on Services, and up will come the Services control program. Find the Hyper-V entry and disable/enable it. I personally recommend a reboot of your computer.

Another route to disabling/enabling Hyper-V is to run the bcdedit program to change the launch of Hyper-V. BCDEdit (boot command edit) allows you to change to boot options of the computer. More information here - https://technet.microsoft.com/en-us/library/cc709667(v=ws.10).aspx  .

TURN HYPER-V OFF
bcdedit /set hypervisorlaunchtype off

Then reboot the computer.

TURN HYPER-V ON
bcdedit /set hypervisorlaunchtype auto

Then reboot the computer.

Hope this helps you with getting your Android emulators working on Windows. Lots of fun to be had yet. Watch devfish.net and I'll keep you posted as I play more.

“Any AI smart enough to pass a Turing test is smart enough to know to fail it.” ― Ian McDonald, River of Gods

IDFLinkable #15-02 - Patch thy vs2015

EDGE BROWSER

INTERNET OF THINGS

WINDOWS PHONE

WINDOWS 10

MISC

Error: Invalid Gradle JDK configuration found. Open Gradle Settings. Platform SDK does notpoint to valid JDK

So I thought I had everything ironed out with my JDK versioning errors after installing 1.8 JDK over 1.7 JDK.  But... I start working through the super simple "Happy Birthday" sample from Udacity's free Intro to Android Studio Class.  Setup a new project and woopsy, get the following:


Course of action to correct.

In Android Studio, navigate to File -> Project Structure -> SDK Location

Set the JDK location to the 1.8 (or whatever is current) correct SDK you wish to use. 

Hopefully all joy and happiness after that. 

I don't know if this fixes the JDK location for all projects.  If it doesn't, there will be another post coming shortly.



"An android," he said, "doesn't care what happens to another android. That's one of the indications we look for."  "Then," Miss Luft said, "you must be an android.”
― Philip K. Dick, Do Androids Dream of Electric Sheep?