【问题标题】:There is a problem with reinstalling the Xamarin program on the phone if it has been uninstalled手机上的Xamarin程序如果已经卸载重装会出现问题
【发布时间】:2021-08-21 14:30:25
【问题描述】:

应用程序调试出现问题。我曾经调试过它,一切都很好。然后我从手机中删除了应用程序,但现在我需要再次使用它。但是在部署时,我得到一个错误:

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'. 0,

互联网上的所有选项都不起作用,有人可以帮忙,谢谢。我使用的是 Android 版本 9.0-API 28

该程序已从手机中卸载,现在我需要再次使用它。

【问题讨论】:

  • 您是否执行了错误消息中提示的任何一项操作?
  • 消息中没有任何建议,只是一个错误行,我用它来修复它。 stackoverflow.com/questions/66799236/…
  • 但这对我没有帮助
  • “请禁用快速部署...”似乎是一个非常明确的建议。
  • 尝试删除项目的bin和obj文件夹并重启visual studio。

标签: android debugging xamarin xamarin.forms


【解决方案1】:
  1. 在“调试选项”下,确保选中“启用开发人员工具(调试和分析)”。

验证“使用快速部署(仅限调试模式)未选中。

然后Rebuild Solution。应该可以再次调试了。


  1. 如评论中所述,删除项目的 bin 和 obj 文件夹比“清理解决方案”或“重建解决方案”更彻底。应该让您的项目进入清理状态。

  1. 关闭手机。然后重新打开电源。

  1. 如果手机关机不能解决,那么可能是卸载应用时遗留了快速部署模块,重新安装应用时由于某种原因无法识别。

修复是使用“adb”命令行手动完全卸载应用程序:

Visual Studio,工具菜单 > Android > 运行 ADB 命令提示符

adb uninstall com.example.yourApp。将您的应用程序包名称替换为“com.example.yourApp” - 它应该具有类似的格式,前两部分可能是您公司的网站。

【讨论】:

    猜你喜欢
    • 2011-11-21
    • 1970-01-01
    • 1970-01-01
    • 2021-03-23
    • 1970-01-01
    • 2012-11-03
    • 2019-08-27
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多