Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2015 RC Emulator for Android doesn't start

I have a problem with the Visual Studio 2015 RC Emulator for Android. The emulator is not starting when I'm starting debugging (F5) nor from "Tools > Visual Studio Emulator for Android...". The process is stuck on "Preparing virtual machine" and there is a "Xde.exe" process with 0% CPU usage in Task Manager. This happens for all virtual machines. Previous emulators (pre-RC) were working just fine.

The necessery APIs (19 and 21) are installed according to SDK manager.

I have tried re-installing Visual Studio and also repairing it but it didn't help.

How can I fix that?

Visual Studio Emulator for Android

Update:

Here are logs: http://pastebin.com/xgyTNkJ9 . The [Critical] The operation was canceled. lines are self explenatory. [Critical] Could not launch 'VS Emulator 5.5" KitKat (4.4) HDPI Phone' device.occured when I killed xde.exe in Task manager.

What's weird is a fact that when I import VHD file from %localappdata%\Microsoft\VisualStudioEmulator\Android\Containers\Local\Devices into Hyper-V manager it works just fine and I can even start it and use it. Unfortunately, I still can't debug application from Visual Studio that way.

Update 2:

So I've reinstalled the Windows on my notebook and same thing happens after installing Visual Studio 2015 RC. So two different hardware, one clean Windows installation and same effect.

like image 468
Pajdziu Avatar asked May 14 '15 13:05

Pajdziu


People also ask

Does Visual Studio have an Android emulator?

The Visual Studio Emulator for Android is included when you install Visual Studio to develop for Android, iOS, and Windows—all from one code base using familiar languages such as C#, JavaScript, and C++.

How do I run an emulator code in Visual Studio?

Step 1: Go to the Extensions button on VSCode and search for Android and iOS Emulator and install it. Note: Change the Emulator path windows address based on the location of the emulator file on your PC but make the Emulator path as default it would be given as default by the VSCode.


1 Answers

This might be a duplicate of Visual studio (2015) emulator for android not working - XDE.exe - Exit Code 3.

I was having the same issue as yourself and this was solved by following the steps provided in this answer: https://stackoverflow.com/a/31698124/1010492.

The key for me was to disable the Network Sharing I had set on my Wi-fi adapter.

like image 198
Gyum Fox Avatar answered Sep 27 '22 20:09

Gyum Fox