Xamarin.Forms Android, slow deploy to physical device or emulator in VS 2019

Dimitris Mylonas 16 Reputation points
2021-03-15T19:48:18.15+00:00

I use the latest version of VS 2019 (16.9.1)
Xamarin.Forms 5.0.0.2012

The problem is only in Android (physical device and emulator)
In the last 2 updates of Visual Studio, I noticed that there is significant delay from building the app to deploying the app to the device (debug configuration)
I never used emulators. I was always using a physical device to test my apps.
At one point this delay became very annoying and I thought that maybe I can overcome the issue by installing an emulator.
The delay is the same with the emulator too.
There is about 7 to 8 seconds, from the moment that I see in debug window "Found device: emulator-5554" up to the moment that the app starts.
When I say "the app starts", I mean, the first blue xamarin.forms screen of a blank application.
Same behavior with a physical device.
I didn't experience the same problem before the last 2 updates of VS. Actually everything was very fast.
So the question is what is the problem and how can I correct it.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,357 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,142 questions
{count} vote

4 answers

Sort by: Most helpful
  1. Markus Krauthausen 1 Reputation point
    2021-06-10T10:36:55.78+00:00

    Hello everybody,
    I think I have good news !?
    Now I have installed the version MS Visual Studio 2019 - 16.10.1.
    It's faster for me again :-D
    Try it out and please send us a message as to whether it works again for you.

    Have a good time
    Markus


  2. Mano Nagarajan 11 Reputation points
    2021-06-16T06:51:09.13+00:00

    I'm also facing this issue on VS 2019 16.10.2

    0 comments No comments

  3. hernan lagrava 1 Reputation point
    2021-06-20T04:03:35.227+00:00

    Yesterday I update visual 2019 to version 16.10.2, bad desicion for me :(

    The deploying and debuggin to android devices and emulator is painful slow, unusable for debug

    Please fix tis error is very bad

    0 comments No comments

  4. dondestas 1 Reputation point
    2021-06-22T14:14:18.367+00:00

    I also started facing this issue after I updated VS 2019 from 16.10.1 to 16.10.2

    In my Android project, when I disable (Debugging options -> Enable developer instrumentation) everything start's to work fine. However, this is not a solution since this option disables debugging.

    As it seems, it's not the first time that this bug occurs: https://developercommunity.visualstudio.com/t/update-1623-broke-android-debugging/714508

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.