android - Xamarin.Forms:Visual Studio 升级后的部署问题
问题描述
将 Visual Studio Professional 2019 升级到版本 16.9.2 后,当我尝试在 Android Emulator 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'.
在升级之前,一切正常。这真是令人沮丧!
解决方案
为了纠正这个问题,我不得不
- 在Android手机上卸载应用程序(重要步骤)
- 从解决方案资源管理器中卸载 Android 项目
- 这将打开项目文件代码现在搜索代码
<EmbedAssembliesIntoApk>false</EmbedAssembliesIntoApk>
- 将 false 更改为 true 保存
- 重新加载项目问题已解决。
注意选中快速部署。
推荐阅读
- java - 无法验证从 android 应用程序获取的 id 令牌
- javascript - Ionic context.getProjectMetadata 不是函数 [仅限实时重新加载]
- python - xml xpath和python中的嵌套
- javascript - 使用 Column 的 react-bulma 组件导致意外令牌
- vb.net - 将 OpenPOP 附件转发到 SMTP (System.Net.Mail)
- javascript - 将字符串转换为日期对象 javascript 返回不正确的日期
- python - 在零和一的矩阵中找到 1 的位置 (i, j) 的最佳方法是什么?
- python - 从 CSV 文件更新 Django 数据库中的值时如何使用 update_or_create
- node.js - MONGODB+Node上的认证问题
- list - LiteDB - 通过 List.contains 查找数据对象