Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple visual studio emulator for android errors

I cannot run visual studio emulator for android. I'm getting this error when pressing green play button on device profile:

We encountered a problem while launching this device. Please try again or see log file for details.

Here is the log:

26.08.2015 22:24:32: [Informational] Waiting to launch device...
26.08.2015 22:24:32: [Informational] Launching Device: 5" KitKat (4.4) XXHDPI Phone
26.08.2015 22:24:32: [Informational] Validating emulator arguments...
26.08.2015 22:24:32: [Informational] Determining if emulator is already running...
26.08.2015 22:24:32: [Informational] Preparing virtual machine...
26.08.2015 22:24:33: [Critical] An error occured while creating 'VS Emulator 5" KitKat (4.4) XXHDPI Phone' device.
26.08.2015 22:24:33: [Critical] XDE Path: C:\Program Files (x86)\Microsoft XDE\10.0.10240.0\xde.exe
26.08.2015 22:24:33: [Critical] XDE Arguments: /sku Android /displayName "VS Emulator 5\" KitKat (4.4) XXHDPI Phone" /memSize 2048 /diagonalSize 5 /video "1080x1920" /vhd "C:\Users\Александр\AppData\Local\Microsoft\VisualStudioEmulator\Android\Containers\Local\Devices\vhd\5_KitKat_(4.4)_XXHDPI_Phone\image.vhd" /name "VS Emulator 5-inch KitKat (4.4) XXHDPI Phone.александр" /noStart /silent
26.08.2015 22:24:33: [Critical] XDE Exit Code: InvalidArguments (3)

Windows Phone emulator works perfect. Repairing and reinstalling the emulator did not help. Checked, that I am a member of Hyper-V Administrators group.

UPD1: I managed to run the emulator anyway. I launched it from command prompt without 2 last parameters: "/noStart /silent". Then I saw a dialog about configuring the internet connection and pressed "NO". And the emulator successfully launched. Perhaps the problem is somewhere in Hyper-V manager -> virtual switches? I have 10 equal virtual switches there, and cannot remove them: "Fail while removing virtual Ethernet switch".

UPD2: Now, my unity3d application doesn't work. I deploy it by drag'n'drop, then press it's icon and black screen appears. Is it because of emulator internet connection error?

like image 784
user3125174 Avatar asked Sep 26 '22 22:09

user3125174


1 Answers

The third argument is in the Name.

5\"

/sku Android /displayName "VS Emulator 5\" KitKat (4.4) XXHDPI Phone" 

Change the name in C:\Users\windowsuser\AppData\Local\Microsoft\VisualStudioEmulator\Android\Containers\Local\Devices\xxxxx_Phone.cfg

device.name=MyDevice (4.4)
like image 78
BitDEVil2K16 Avatar answered Sep 30 '22 08:09

BitDEVil2K16