简体   繁体   English

使用Xamarin的部署滞留在Visual Studio 2015 Update 3中

[英]Deployment Stuck in Visual Studio 2015 update 3 with xamarin

While deploying the app in visual basic 2015 update 3, it gets stuck. 在Visual Basic 2015 Update 3中部署该应用程序时,它被卡住了。

  • When running the emulator initially and then deploying the app it opens another emulator and becomes deadlocked. 最初运行模拟器然后部署应用程序时,它将打开另一个模拟器并陷入僵局。

  • It also becomes stuck when simply deploying the app without opening the emulator. 仅在部署应用程序而不打开模拟器时,它也会卡住。

Although the app did build successfully: screenshot . 尽管该应用确实构建成功: 屏幕截图

I had the same issue yesterday. 我昨天有同样的问题。 Apparently there's an update coming for xamarin but Visual Studio errors out. 显然,xamarin即将更新,但Visual Studio出错了。 I would as Nika said make sure to remove the app from the emulator. 正如Nika所说,请确保从模拟器中删除该应用程序。 Once done go to Tools -> Options -> Xamarin -> Other. 完成后,转到工具->选项-> Xamarin->其他。 Once there click the Check Now link and get the latest stable update. 在那里,单击立即检查链接并获取最新的稳定更新。 For some reason every time an Xamarin Update is coming Visual Studio errors out on me. 由于某种原因,每次Xamarin更新即将到来时,Visual Studio都会出现错误。 Or freezes for that matter. 或为此冻结。

I would be careful with installing the latest update of Xamarin, as it does have a few bugs to work out (witnessed it firsthand with incredulous frustration). 我会安装Xamarin的最新更新时要小心,因为它确实有一些错误需要解决(亲眼目睹它时会感到非常沮丧)。 The problem might have to do with the Xamarin version you have installed in Visual Studio 2015 Update 3. If your version is 4.2.X (latest), you might experience more issues than just the 'error out'. 该问题可能与您在Visual Studio 2015 Update 3中安装的Xamarin版本有关。如果您的版本是4.2.X(最新),则可能会遇到不仅仅是“错误输出”的问题。 I had to downgrade to 4.1.2 for everything to work properly again. 我必须降级到4.1.2才能再次正常运行。

Hope this helps you. 希望这对您有所帮助。

Got the solution. 得到了解决方案。

  1. t enter image description here he path of your app is not too large.Simple create your project in any drive3 with one folder name only. 在此处输入图片说明 ,您的应用路径不会太大。只需在一个drive3中仅使用一个文件夹名称即可轻松创建项目。

2.Update your SDK manager with latest aAPI 23/24. 2.使用最新的aAPI 23/24更新您的SDK管理器。

3.In SDK manager update only that tool which is necessary. 3.在SDK Manager中,仅更新必要的工具。 PFA the Screenshot PFA屏幕截图

I too have had weirdness with the Visual Studio Emulator for Android and visual studio appearing to be stuck at the "Deploying ..." step trying to launch the app for debugging. 我对Android的Visual Studio模拟器也很陌生,而Visual Studio似乎停留在试图启动应用进行调试的“部署...”步骤中。

What I discovered is that restarting both the emulator and visual studio seems to make things better for me once it starts to do this. 我发现,重新启动模拟器和Visual Studio似乎可以使事情变得更好。 Also, when debugging an app, it seems that exiting your app normally helps compared to when using the "Stop Debugging" button. 另外,在调试应用程序时,与使用“停止调试”按钮相比,退出应用程序似乎通常有所帮助。 For example, I started my app twice and killed it w/ the "Stop Debugging" button, but couldn't deploy/start the app a 3rd time w/out a restart of visual studio and the emulator. 例如,我两次启动了我的应用程序,并使用“ Stop Debugging”(停止调试)按钮将其杀死,但是由于没有重新启动Visual Studio和仿真器,因此无法第三次部署/启动该应用程序。

Am using VS 2015 Community edition w/ update 3. 我正在使用带有更新3的VS 2015社区版。

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

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