[英]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:将 Visual Studio Professional 2019 升级到版本 16.9.2 后,当我尝试在 Android 模拟器 api 28 (9.0) 上部署时,出现以下错误:
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!
这真是令人沮丧!
To correct this problem I had to为了纠正这个问题,我不得不
<EmbedAssembliesIntoApk>false</EmbedAssembliesIntoApk>
<EmbedAssembliesIntoApk>false</EmbedAssembliesIntoApk>
的代码 Note leave fast deploy checked.注意选中快速部署。
Go to >> Solution Properties>> Android Options>> Uncheck "Use Fast Deployment(debug mode only)" Go 到 >> 解决方案属性>> Android 选项>> 取消选中“使用快速部署(仅限调试模式)”
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.在将图像添加到我的项目后发现我有大写字母作为名称 SomePicture.png 将所有图像重命名为小写后,我最近遇到了同样的问题。
@AlwinBrabu, I think you meant "Project Properties" -> Android Options -> Uncheck Fast Deployment(debug mode only). @AlwinBrabu,我认为您的意思是“项目属性”-> Android 选项-> 取消选中快速部署(仅限调试模式)。
This worked for me, although this is a workaround.这对我有用,尽管这是一种解决方法。 I do not consider it a solution.
我不认为这是一个解决方案。
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.为了解决这个问题,我必须在解决方案资源管理器中右键单击 Android 项目,然后在
Options
-> Android Build
中取消选中Fast Assembly Deployment
选项。
Then deploy the project on the Android emulator.然后在 Android 仿真器上部署项目。
But after deploying it once, I went back to the settings and checked (ie 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).我正在运行 Visual Studio for Mac 2022 版本 17.0.1(内部版本 72)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.