Visual Studio 2015 RC Emulator for Android doesn't start

十年热恋 提交于 2019-12-20 10:29:33

问题


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?

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.


回答1:


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.




回答2:


You are probably not a member of the Hyper-V Admins group on the computer. Do this:

  1. Open Control Panel > Administrative Tools > Computer Management.
  2. Expand "Local Users and Groups" and then click on "Groups."
  3. Double click on "Hyper-V Administrators" group.
  4. Click "Add" and add your username to the group.

If the group doesn't exist, you can create it using the PowerShell script in this blog post: http://blogs.msdn.com/b/virtual_pc_guy/archive/2010/09/28/creating-a-hyper-v-administrators-local-group-through-powershell.aspx




回答3:


It may be that you do not have enough memory available to start the Hyper-V VM. If you go to Hyper-V Manager and attempt to start the emulator image, you'll be able to see if it starts at all or if you don't have enough free RAM on the machine.




回答4:


I came up with a very genuine solution that can fulfill your basic need of running the emulator. All you need to do is follow these steps:

  1. Sign in to https://www.genymotion.com/account/login/
  2. Download Genymotion from there.
  3. First Download and run the Emulator of your own choice from Genymotion. [Start the Emulator From Start Button][2]
  4. Then Keep it running and Open the Visual Studio.
  5. Open your Solution,and while your Genymotion Emulator Running,You will see that at Play option,you will be having new Emulator device which will be Genymotion Device.

  6. Deploy using that device.

  7. Hurray!! Your Solution is Successful.


来源:https://stackoverflow.com/questions/30238963/visual-studio-2015-rc-emulator-for-android-doesnt-start

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!