[英]Microsoft visual studio doesn't show any android emulator or physical device for Xamarin project
I have a xamarin project and i want to debug it, but visual studio doesn't show any emulator or physical device.我有一个 xamarin 项目,我想调试它,但 Visual Studio 没有显示任何模拟器或物理设备。 this is the menu
这是菜单
I wanted to restart adb from tools > android but it's disabled.我想从工具 > android 重新启动 adb,但它已被禁用。 but when I open a non xamarin project (for example a web porject) this options is enabled.
但是当我打开一个非 xamarin 项目(例如一个 web 项目)时,这个选项被启用。
I can see my device in cmd with command adb devices
and in android studio, every thing is fine and I can deploy some java application to my phone.我可以在 cmd 中使用命令
adb devices
和在 android studio 中看到我的设备,一切都很好,我可以将一些 Java 应用程序部署到我的手机上。
do you have Any idea?你有什么主意吗?
Update更新
I created new project and in this new project, every thing is fine and I can debug with my phone or emulators.我创建了新项目,在这个新项目中,一切都很好,我可以用我的手机或模拟器进行调试。
but in my existing project which I'm currently working on, there is no device in list.但是在我目前正在处理的现有项目中,列表中没有设备。
我刚刚在使用 vs 2019 时遇到了这个问题,要解决这个问题,手动删除obj和bin文件夹重新启动 vs,仅此而已:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.