我正在开发一个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.
更多推荐
发布评论