Android Emulator被Visual Studio 2017 15.5.6删除(Android Emulator removed by Visual Studio 2017 15.5.6)

编程入门 行业动态 更新时间:2024-10-28 02:29:53
Android Emulator被Visual Studio 2017 15.5.6删除(Android Emulator removed by Visual Studio 2017 15.5.6)

我正在开发一个Xamarin Android应用程序,并愉快地使用Android模拟器进行测试。 我的环境包括Android模拟器管理器(AVD),Android SDK管理器,Android设备监视器(DDMS)等。 在恶化构建问题和无法解释的构建错误消息之后,我决定最终将Visual Studio更新到15.5.6版(去年我上次更新的最后一次)。

更新后,我的Xamarin应用程序甚至不再被认为是Xamarin应用程序,并且我的环境似乎已经严重损坏。 所有启动Android工具的按钮都被禁用。 如果我从开始菜单中选择它们,或直接从文件系统运行EXE(AVD Manager.exe),则表示找不到tools \ android.bat。 如果我尝试调试应用程序,我得到以下输出:

1>Starting deploy AVD_for_Nexus_6_by_Google ... 1>Starting emulator AVD_for_Nexus_6_by_Google ... 1>An error occured. See full exception on logs for more details. 1>This property is not valid when the SDK is not installed ========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========

为什么以及Visual Studio更新如此糟糕,我的环境如何修复?

I was developing a Xamarin Android app, and happily using the Android emulator to test. My environment included Android Emulator Manager (AVD), Android SDK Manager, Android device monitor (DDMS) and more. After having worsening build problems and inexplicable build error messages, I decided to finally update Visual Studio to version 15.5.6 (The last time I had updated was late last year).

After updating, my Xamarin application is not even recognized as a Xamarin application any more, and my environment seems to have been severely corrupted. All the buttons to launch the Android tools are disabled. If I select them from the start menu, or run the EXE (AVD Manager.exe) directly from the file system, it says that tools\android.bat is not found. If I try to debug the application, I get the following output:

1>Starting deploy AVD_for_Nexus_6_by_Google ... 1>Starting emulator AVD_for_Nexus_6_by_Google ... 1>An error occured. See full exception on logs for more details. 1>This property is not valid when the SDK is not installed ========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========

Why and how did a Visual Studio update screw up my environment so badly, and how do I fix it?

最满意答案

我打开Visual Studio安装程序(从开始菜单)并从“更多”下拉列表中选择修复命令。 这解决了它。

I opened Visual Studio Installer (from the Start menu) and selected the Repair command from the "More" dropdown. That fixed it.

更多推荐

本文发布于:2023-08-03 04:10:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1382918.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Visual   Emulator   Android   Studio   removed

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!