简体   繁体   English

Android模拟器未运行 - Visual Studio 2017

[英]Android Emulator Not Running - Visual Studio 2017

I recently installed VS 2017. Trying to run a blank Android App Project. 我最近安装了VS 2017.试图运行一个空白的Android App Project。 All necessary tools are installed but when I try to launch the emulator from within Visual Studio, I get this: 安装了所有必需的工具但是当我尝试从Visual Studio中启动模拟器时,我得到了这个:

在此输入图像描述

Any Help will be greatly appreciated. 任何帮助将不胜感激。

I am having the same problem too. 我也有同样的问题。 I am able to run the Hyper-V emulators in VS 2015 but not VS 2017. When I try to launch them in VS 2017 I receive Object reference not set to an instance of an object. 我可以在VS 2015中运行Hyper-V模拟器,但不能运行VS 2017.当我尝试在VS 2017中启动它时,我收到的对象引用未设置为对象的实例。

If the emulator is already running I am able to run the app that I'm working on from VS 2017. So to work around this I start the emulator from Visual Studio Emulator for Android Windows application and then launch the app that I'm working on from VS 2017. Not great, but it works. 如果模拟器已经运行,我可以运行我正在从VS 2017工作的应用程序。所以要解决这个问题,我从Visual Studio Emulator for Android Windows应用程序启动模拟器,然后启动我正在工作的应用程序从VS 2017开始。不是很好,但它的确有效。

By the way, the Windows Phone 10 Hyper-V emulators launch without issue from VS 2017. 顺便说一下,Windows Phone 10 Hyper-V仿真器在VS 2017中没有问题。

Update 更新

I just installed the latest VS 2017 (on April 8) update and the problem appears to have been corrected. 我刚安装了最新的VS 2017(4月8日)更新,问题似乎已得到纠正。

Perhaps Android SDK didn't install/update properly. 也许Android SDK没有正确安装/更新。 You can try reinstalling Android SDK. 您可以尝试重新安装Android SDK。

假设存在bios文件,请尝试将其复制到计算机上的“android-sdk-windows \\ tools”文件夹中,这可能是路径问题

  1. Set bios to allow Virtualization. 设置BIOS以允许虚拟化。
  2. In VS2017, run AVD first before running/debugging xamarin project. 在VS2017中,在运行/调试xamarin项目之前先运行AVD。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM