Archives

How to run Android Studio on Windows without disabling Hyper-V

If you run Windows and use the Hyper-V hypervisor, which is used by Visual Studio as well as being handy for testing stuff in virtual machines, then you will encounter an annoyance if you go on to install Android Studio, Google’s official IDE for Android.

The problem is that Google’s Android emulator uses Intel’s HAXM (Hardware Accelerated Execution Manager) which uses the same CPU virtualization extensions as Hyper-V. This means it is incompatible. It is not only that you can’t run Hyper-V and HAXM simultaneously; the PC has to be configured at boot to use one or the other.

The solution (if you do not want to disable Hyper-V) is to use Microsoft’s Android emulator, which is a free download here.

image

In order to use this with Android Studio, you need to run the emulator first. Then, in Android Studio, go to Run – Edit Configurations and select Show Device Chooser Dialog under Deployment Target Options.

image

Now run your project, and select the VS Emulator, ignoring the invitation to “Turn off Hyper-V”:

image

Now you can debug your application in the Visual Studio Emulator – which is pretty good.

image

Related posts:

  1. Google’s official Android Studio is at version 1.0
  2. Compile Android Java, iOS Objective C apps for Windows 10 with Visual Studio: a game changer?
  3. Microsoft disabling USB AutoRun in Windows 7 RC
  4. Official Google Android Studio is based on JetBrains IntelliJ IDEA
  5. Embarcadero RAD Studio XE5 (Delphi) for Android now available

1 comment to How to run Android Studio on Windows without disabling Hyper-V

  • Floyd

    Thanks for this.

    I run Windows/VS Studio in Parallels on a Mac. There are no solid Android emulation options (best is setting up Parallels x86 environment).

    Looks like I will have to use Xamarin Studio on Mac side but post merger not sure I can get Xamarin Studio anymore without a MSDN subscription

    Would be nice if MS could come up with a solid solution for doing Android dev on a Mac using VS studio. Not holding breath.

    The