Innova
Innova

Reputation: 396

Xamarin.Forms: deployment issue after Visual Studio upgrade

After upgrading Visual Studio Professional 2019 to version 16.9.2, when I try to deploy on Android Emulator api 28 (9.0), I get following error:

Error XA0130: Sorry. Fast deployment is only supported on devices running Android 5.0 (API level 21) or higher. Please disable fast deployment in the Visual Studio project property pages or edit the project file in a text editor and set the 'EmbedAssembliesIntoApk' MSBuild property to 'true'.

Before the upgrade, everything worked fine. This is really frustating!

Upvotes: 5

Views: 6218

Answers (5)

Fritz Lim
Fritz Lim

Reputation: 2189

To solve this, I had to right-click on the Android project in the Solution Explorer, then in Options -> Android Build uncheck the Fast Assembly Deployment option.

Then deploy the project on the Android emulator.

But after deploying it once, I went back to the settings and checked (i.e. ticked) the Fast Assembly Deployment option, and subsequent deploys worked fine.

I'm running Visual Studio for Mac 2022 version 17.0.1 (build 72).

Upvotes: 1

DoubleAxion
DoubleAxion

Reputation: 51

@AlwinBrabu, I think you meant "Project Properties" -> Android Options -> Uncheck Fast Deployment(debug mode only).

This worked for me, although this is a workaround. I do not consider it a solution.

Upvotes: 0

user2180706
user2180706

Reputation: 307

I had the same issue recently after adding images to my project found out that I had upper case letters as a name SomePicture.png renaming all images to lower case solved it.

Upvotes: 1

user2180706
user2180706

Reputation: 307

To correct this problem I had to

  1. uninstall app on Android phone (important step)
  2. Unload Android Project from solution explorer
  3. This brings up the project file code now search code for <EmbedAssembliesIntoApk>false</EmbedAssembliesIntoApk>
  4. Change false to true save
  5. reload project problem solved.

Note leave fast deploy checked.

Upvotes: 2

AlwinBrabu
AlwinBrabu

Reputation: 21

Go to >> Solution Properties>> Android Options>> Uncheck "Use Fast Deployment(debug mode only)"

Upvotes: 2

Related Questions