Forum Xamarin.Forms
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Android build and deploy takes 6min - what can I do?

PhilipOGormanPhilipOGorman USMember ✭✭✭
edited August 28 in Xamarin.Forms

I've been away from xamarin form android for a bit - I had heard that build and deploy had improved, but I see its as bad as ever...
With no code change a build and deploy for debugging to a Samsung SM-T350 takes over 6min.

Im using VS2019 - on a decent machine, VS is using 2G of memory.

Attached are my project setting - what am I doing wrong here?

Followed project settings in this article
Now it is 4min - is that as good as it gets?



  • Eric_LiraEric_Lira USMember ✭✭✭

    For Xamarin.Android, I've notice if you reduce the debug output info from mono your app will start a bit faster.
    To do that, add a new text file on the root of you Android project, name it "environment.txt", add this line to file MONO_LOG_LEVEL=error and set its Build Action to AndroidEnvironment.

    More opitions can be seen here:

    Also, changing MSBuild verbosity helps too. Open Tool > Options > Projects and Solutions > Build and Run and change verbosity to quite or minimal.

    I hope this helps

Sign In or Register to comment.