This is happening really often to me now, when I try to deploy an Xamarin.Forms (1.4) to my Android device through Visual Studio 2015 it freezes at this point:
I have to end the Visual Studio process. If I restart VS and run again it works. After 2-3 times it starts to freeze again and I have to restart again.
Why is this happening? Any ideas?
Turns out I was using the Design DLLs provided by Xamarin staff here and they were the culprit causing the issues hanging Visual Studio.
Unfortunately I had to remove them to stop the crashes.
Related
I am having a strange issue and am not sure how to figure out what is happening. I am developing an Add-In for Revit to display a web page in the dock panels. I followed the tutorial here for using GeckoFx45 in WPF. Everything works fine while I am debugging with Visual Studio. If I quit debugging and run the same dll disconnected from Visual Studio, GeckoFx45 stops at Xpcom.Initialize("Firefox");
I haven't recompiled, just running without Visual Studio attached and debugging. Since it works while debugging, I'm not sure how to figure out what is wrong.
If it makes a difference, I am using the most recent GeckoFx45 64 bit NuGet. https://www.nuget.org/packages/Geckofx45.64/
I'm using visual studio 2017, currently i'm developing UWP apps I don't know the exact reason, when i try to run the application it suddenly stops and closes and then restarts again and also some times i get the Microsoft Visual Studio is busy message as a notification and visual studio got stucked. Can any one help me to solve this issues.
I'm working with Visual Studio Community 2015 Update 3 and the Visual Studio Emulator for Android (API Level 19). Everything works fine, but since last Xamarin update I can't deploy to Visual Studio Emulator.
I click on run at visual studio and it deploys the app to the emulator (I cann see it in app drawer), then it starts the app.
But the app closes immediately, and visual studio says at output:
Could not connect to the debugger.
Solutions I tried already (without success):
Enabled Migrate to a physical computer with a different processor version in Hyper-V settings
Disabled Use Fast Deployment in project settings
EDIT: On my real phone I can debug this app.
EDIT2: Here's the logcat output
I had the same problem and it's really frustrating!
I had the problem for both Visual Studio 2019 and Visual Studio 2022.
I tried literally every solution on the web, and none of these worked for me:
updating everything in Visual Studio to the latest version
updating every Android SDK and component
sending various adb commands via the ADB console (like: adb -s 10.0.2.2:5554 root)
#TienQuang solution in this post
restarting multiple times Visual Studio and Windows
deleting and recreating Android emulators images
I was really out of solutions to try, and then...I simply reset my emulator proxy configuration (the always worked fine) switching to the "default Android Studio HTTP proxy settings", and now I can debug my application!
I've had this problem before. My problem was that the emulator was old and could not load things properly and was really slow. I suggest upgrading to a different emulator or just using your phone for debugging. If you want, you could try running it in release and see if it runs then. If not create a new emulator from the AVD Manager.
I recently had to wipe my entire PC due to getting too many Blue Screens, so after that I went through the process of reinstalling all my software development tools, in this case Visual Studio Community 2015 and Xamarin for Android.
It went smoothly enough but I now have a new problem, when I debug the Project I am working on, breakpoints never get hit. I tried cleaning the solution, restarting the PC/Android tablet, reinstalling Xamarin and changing devices, but my breakpoints never get hit when I'm debugging my app, and its pretty annoying to say the least.
Before I did the hard reset on my PC, everything worked perfectly.
I would switch to Xamarin Studio but it seems since Microsoft took over Xamarin they have dropped the Windows version of Xamarin studio, so I am now stuck with Visual Studio with a broken debugger.
I think this is a Xamarin related issue because when I use Visual Studio to work on web applications, the debugger works as expected.
Is there anyone who has the latest version of Xamarin for Visual Studio experienced the same problem? and if so, what did you do to get the debugger working again?
thank you, I'll be happy to provide technical/build information if you need it.
I'm a PHP developer, but recently I have to work with Visual Studio in a C# application. I don't know much about C#, just had a few experiences with it, and the problem is when I try to run/debug my code it works only for the first time. If I change ANY piece of code anywhere in the code the project won't launch anymore, all it does when I click "Debug" is open Google Chrome for me and there it hangs awaiting for "localhost" forever... This issue is driving me nuts, I can't program well if I have to restart Visual Studio whenever I change some code.
I have tried a lot of things that I found here and on Google, but nothing helped. I have fully repaired VS 2015, didn't work. Then I reinstalled it and still not working.