简体   繁体   English

Visual Studio 2015与Xamarin android项目冻结

[英]Visual Studio 2015 freezes with Xamarin android project

I have been facing a problem of freezing Visual Studio 2015 frequently during building a Xamarin Android project and each time I have to kill Visual Studio process and start the building process again then it will work. 在构建Xamarin Android项目期间,我经常遇到冻结Visual Studio 2015的问题,每次我必须终止Visual Studio进程并再次启动构建过程后,它便会起作用。 I'm facing this issue with two machines both of them are Windows 10 Pro . 我面对两台机器都是Windows 10 Pro
I'm using: 我正在使用:

  • Visual Studio 2015 Community update 3. Visual Studio 2015社区更新3。
  • Xamarin 4.2.0 Xamarin 4.2.0
  • Xamarin.Android 7.0.1.6 Xamarin.Android 7.0.1.6

I have the same problem and can't find the source of why visual studio hangs while developing Xamarin android project. 我有同样的问题,无法找到开发Xamarin android项目时visual studio为何挂起的原因。

Specs: 眼镜:

Visual Studio Professional 2015 with latest update
Windows 10 64-bit
Dev Express Included
ReSharper Installed
Visual Studio 2013 also installed on machine
16 GB Ram
Intel i7 6700 CPU 3.40 GHx
Git for source control
jdk1.7.0_55
Xamarin latest version

The designer also hangs crazy time In event viewer I can see that vs studio hangs 设计师还度过了疯狂的时光在事件查看器中,我可以看到vs工作室被挂起了

The program devenv.exe version 14.0.25420.1 stopped interacting with Windows and was closed. 程序devenv.exe版本14.0.25420.1停止与Windows交互并被关闭。 To see if more information about the problem is available, check the problem history in the Security and Maintenance control panel 若要查看有关该问题的更多信息,请在“安全和维护”控制面板中查看问题历史记录

I tried the following attempts and did not helped me: 我尝试了以下尝试,但没有帮助我:

1.Reinstall (windows + visual studio).
2.Reinstall vs with Xamarin.
3.Update to latest version of Xamarin and vs 
4.I also deleted the C:\Users\ ...\AppData\Local\Microsoft\VisualStudio\14.0 directory and i just
lost my settings and some configuration with no effect. Also VS extensions have been removed
5.Deleted my anti virus did not helped
6.No firewall anymore disabled it
7.Disabled windows defender
8.Removed Resharper

The only solution i have is : 我唯一的解决方案是:

Kill vs and restart... but this in annoying since to many times it hangs 杀死vs并重新启动...但这很烦人,因为它多次挂起

Before you go re-installing everything... 在您重新安装所有内容之前...

I've also experienced Visual Studio (2015 Update 3) hanging while starting a debug session into my Xamarin Android project. 在我的Xamarin Android项目中启动调试会话时,我还遇到了Visual Studio(2015更新3)的问题。

It appears that Visual Studio is having some timing issue between the deployment and connecting to the debugger. 似乎Visual Studio在部署和连接到调试器之间存在一些计时问题。 What is working for me... 什么对我有用...

1) Open Task Manager and Kill Visual Studio (because it's hung, and this is the only way I know how to get it out of this state), then... 1)打开任务管理器并杀死Visual Studio (因为它已挂起,这是我知道如何使它脱离此状态的唯一方法),然后...

2) Keeping the Android Hyper-V instance running from my last debug attempt, re-open my project and start a new debug session . 2) 保持Android Hyper-V实例从上次调试尝试开始运行,重新打开项目并开始新的调试会话

Perhaps Visual Studio is failing to connect to the ADB (Android Debug Bridge) ? 也许Visual Studio无法连接到ADB(Android调试桥)

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

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