Android模拟器未在Visual Studio中显示 [英] Android emulator not showing in Visual Studio

查看:184
本文介绍了Android模拟器未在Visual Studio中显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我制作了一个Android虚拟设备。它使用Intel HAXM在SDK仿真器上运行。
我能够在Visual Studio中看到它(调试设备下拉列表)并在上面调试我的应用程序。当我没有便携式设备时,这非常有用。
然后 某事 发生了!!!它拒绝现在显示吗?

I made an Android Virtual Device. It runs on the SDK emulator using Intel HAXM. I was able to see it in Visual studio (debug devices drop down list) and debug my applications on it. This is great for when I don't have a physical device to hand. Then something happened!?! It refuses to show up now?

在过去的一周里,我尝试了(没有特定顺序):

Over the last week I have tried (In no particular order):


  • 重新创建我的虚拟设备。

  • 重新安装Visual Studio。

  • 重新安装Android SDK。

  • 以管理员身份同时安装上述两个工具。

  • 检查Windows注册表中的SDK路径。

  • 尝试使用adb kill-server /

  • 检查Adb可以看到该设备-可以。

  • 尝试手动卸载/重新安装HAXM。

  • 确保我的项目针对模拟器的API。

  • 确保构建活动配置与模拟器匹配。

  • 结束任何

  • 检查Windows事件日志中是否存在任何警告/错误。没什么。

  • Recreating my virtual device.
  • Reinstalling visual studio.
  • Reinstalling Android SDK.
  • Installing both of the above as an administrator.
  • Checking the SDK path in the windows registry.
  • Tried adb kill-server / start-server.
  • Checked that Adb can see the device - it can.
  • Tried uninstalling/reinstalling HAXM manually.
  • Made sure my project targets API of the emulator.
  • Made sure that the build active configuration matches the emulator.
  • Ended any other ADB processes using task manager (leaving just the one for visual studio).
  • Checked windows event log for any warnings/errors. Nothing.

我已经阅读了这些内容。也不开心...

I have read these. Also no joy...

  • https://forums.xamarin.com/discussion/10937/devices-not-showing-up-in-android-target-device-dropdown
  • Visual Studio 2015 Android Emulator issue

其他信息:


  • 我正在使用Visual Studio 2015社区。

  • 物理设备正常工作,并且在设备下拉列表中没有出现故障!

  • 最新的android SDK

推荐答案

我在使用带有Android Emulator Manager(AVD)的VS 2015时遇到了类似的问题。我必须从Android Emulator Manager启动我的模拟器,然后它将显示在调试设备下拉列表中,但是有一天没有出现。 工具> Android>重新启动Adb Server 为我修复了该问题。

I had a similar issue using VS 2015 with Android Emulator Manager (AVD). I have to start my emulator from the Android Emulator Manager and then it will show up in the debug devices drop down list, but one day it didn't show up. Tools > Android > Restart Adb Server fixed it for me.

这篇关于Android模拟器未在Visual Studio中显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆