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

IDFLinkable - August 17, 2015 - Win10, BootCamp, Machine Learning, Android

Things cool and interesting in the Microsoft Developer Platform as it pertains to Florida and the Microsoft Developer scene, as well as various tech things I'm into.  

WINDOWS 10

  • NetFlix app won't stream fix - http://windowsinstructed.com/fix-windows-store-netflix-app-error-0x80070057/
  • How Microsoft is Improving the NFL with Surface 3 Tablets on Sidelines and New App in Living Rooms - Weather durability, pen usage, real time-on-the-field feedback - http://www.techtimes.com/articles/74841/20150807/microsoft-improving-nfl-experience-surface-pro-3-tablet-sidelines-new.htm
  • Boot Camping a Mac with Win10 Guide - http://www.theverge.com/2015/7/29/9058825/windows-10-macbook-how-to-install-osx
  • Mac Boot Camp support software for Windows 10 - https://support.apple.com/en-gb/HT204923
  • Number picker control - Number Picker Control - http://blogs.msdn.com/b/practice-sharing/archive/2015/08/16/xmal-create-your-own-number-picker-control-for-windows-phone.aspx
  • Using the XAML Live Visual Tree Debugging Against Windows 10 Core Apps - Using the XAML Live Visual Tree Debugger against Windows 10 Core Apps - via @billreiss
  • WINDOWS 10 - PHONE SPECIFIC

    AZURE

    OTHER