Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xamarin Android Player / Visual Studio: Stuck at "Starting Emulator"

Using Visual Studio and Xamarin Android Player (XAP), I suddenly cannot get my app to deploy to the emulated device. The whole debug process gets stuck attempting to start the device and, after an hour or so, never gets any further. The emulator itself actually does start, and it runs fine.

Interestingly, when the device is running, Visual Studio lists it as an unsupported device, and will not even try to deploy to it:

Visual Studio, Unsupported Device

I have tried running this and other projects in Xamarin Studio and Visual Studio to no avail. I have also tried updating / clean installation of the XAP, VirtualBox, JDK, and Android SDK/NDK.

Any ideas on how I can get XAP to work again?

like image 759
Casey DeDore Avatar asked Sep 01 '15 03:09

Casey DeDore


Video Answer


2 Answers

This is a bug in the newest Xamarin.Android version. The bug is caused by an emulator name having spaces in it. The default emulator names all have spaces. The easiest way to avoid the bug is to rename the emulators in Xamarin Android Player so they don't contain any spaces.

like image 67
Trevor Balcom Avatar answered Nov 16 '22 04:11

Trevor Balcom


If you still have the problem, try going to configuration manager in the drop down that says Any CPU and make sure Deploy is checked for your app.

like image 23
Guestguy Avatar answered Nov 16 '22 04:11

Guestguy