Visual Studio 2015 RC Android模拟器还没有启动

时间:2022-12-30 20:39:11

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.

我有一个关于Visual Studio 2015 RC Android模拟器的问题。当我开始调试(F5)或“Android的工具> Visual Studio仿真器…”时,模拟器不会启动。进程被困在“准备虚拟机”上,并且有一个“Xde”。任务管理器中CPU使用率为0%的exe进程。这对所有虚拟机都是如此。以前的模拟器(pre-RC)工作得很好。

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

necessery(19和21)是根据SDK管理器安装的。

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

我试过重新安装Visual Studio,也修过了,但是没有效果。

How can I fix that?

我怎样才能解决这个问题呢?

Visual Studio 2015 RC 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.

这里是日志:http://pastebin.com/xgyTNkJ9。关键的手术被取消了。行自我explenatory。【关键字】无法启动'VS仿真器5.5 ' KitKat (4.4) HDPI手机'设备。发生在我杀了xde的时候。exe在任务管理器。

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.

奇怪的是,当我从%localappdata%\Microsoft\ visualstudiostudioemulator (Android\ Android\ \本地\设备)中导入VHD文件时,它运行得很好,我甚至可以启动它并使用它。不幸的是,我仍然不能通过这种方式调试Visual Studio中的应用程序。

Update 2:

更新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.

所以我已经在笔记本上重新安装了Windows,安装了Visual Studio 2015 RC后也发生了同样的事情。所以两个不同的硬件,一个干净的Windows安装和相同的效果。

4 个解决方案

#1


2  

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

这可能是针对android不工作的Visual studio(2015)模拟器的复制品——XDE。exe -退出代码3。

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

我和你有同样的问题,通过以下步骤解决:https://*.com/a/316984/1010492。

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

对我来说,关键是禁用我在Wi-fi适配器上设置的网络共享。

#2


0  

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

您可能不是计算机上Hyper-V Admins组的成员。这样做:

  1. Open Control Panel > Administrative Tools > Computer Management.
  2. 开启控制面板>管理工具>计算机管理。
  3. Expand "Local Users and Groups" and then click on "Groups."
  4. 扩展“本地用户和组”,然后单击“组”。
  5. Double click on "Hyper-V Administrators" group.
  6. 双击“Hyper-V Administrators”组。
  7. Click "Add" and add your username to the group.
  8. 单击“添加”并将用户名添加到组中。

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

如果组不存在,您可以使用本文中的PowerShell脚本创建它:http://blogs.msdn.com/b/virtual_pc_guy/archive/2010/09/28/creating-a-hyper-v-administrator -local-group-through- PowerShell .aspx

#3


-1  

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.

可能是因为您没有足够的内存来启动Hyper-V VM。如果您去Hyper-V Manager并尝试启动仿真器映像,您将能够看到它是否启动,或者您在机器上没有足够的空闲RAM。

#4


-6  

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. 登录到https://www.genymotion.com/account/login/
  3. Download Genymotion from there.
  4. 从那里下载Genymotion。
  5. First Download and run the Emulator of your own choice from Genymotion. [Start the Emulator From Start Button][2]
  6. 首先从Genymotion下载并运行您自己选择的模拟器。[从开始按钮启动模拟器][2]
  7. Then Keep it running and Open the Visual Studio.
  8. 然后继续运行并打开Visual Studio。
  9. 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.

    打开您的解决方案,当您的Genymotion模拟器运行时,您将看到在Play选项中,您将拥有一个新的模拟器设备,它将是Genymotion设备。

  10. Deploy using that device.

    部署使用该设备。

  11. Hurray!! Your Solution is Successful.
  12. 华友世纪! !你的解决方案是成功的。

#1


2  

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

这可能是针对android不工作的Visual studio(2015)模拟器的复制品——XDE。exe -退出代码3。

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

我和你有同样的问题,通过以下步骤解决:https://*.com/a/316984/1010492。

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

对我来说,关键是禁用我在Wi-fi适配器上设置的网络共享。

#2


0  

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

您可能不是计算机上Hyper-V Admins组的成员。这样做:

  1. Open Control Panel > Administrative Tools > Computer Management.
  2. 开启控制面板>管理工具>计算机管理。
  3. Expand "Local Users and Groups" and then click on "Groups."
  4. 扩展“本地用户和组”,然后单击“组”。
  5. Double click on "Hyper-V Administrators" group.
  6. 双击“Hyper-V Administrators”组。
  7. Click "Add" and add your username to the group.
  8. 单击“添加”并将用户名添加到组中。

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

如果组不存在,您可以使用本文中的PowerShell脚本创建它:http://blogs.msdn.com/b/virtual_pc_guy/archive/2010/09/28/creating-a-hyper-v-administrator -local-group-through- PowerShell .aspx

#3


-1  

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.

可能是因为您没有足够的内存来启动Hyper-V VM。如果您去Hyper-V Manager并尝试启动仿真器映像,您将能够看到它是否启动,或者您在机器上没有足够的空闲RAM。

#4


-6  

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. 登录到https://www.genymotion.com/account/login/
  3. Download Genymotion from there.
  4. 从那里下载Genymotion。
  5. First Download and run the Emulator of your own choice from Genymotion. [Start the Emulator From Start Button][2]
  6. 首先从Genymotion下载并运行您自己选择的模拟器。[从开始按钮启动模拟器][2]
  7. Then Keep it running and Open the Visual Studio.
  8. 然后继续运行并打开Visual Studio。
  9. 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.

    打开您的解决方案,当您的Genymotion模拟器运行时,您将看到在Play选项中,您将拥有一个新的模拟器设备,它将是Genymotion设备。

  10. Deploy using that device.

    部署使用该设备。

  11. Hurray!! Your Solution is Successful.
  12. 华友世纪! !你的解决方案是成功的。