【问题标题】:Xamarin android Application not working in any Physical deviceXamarin android 应用程序无法在任何物理设备中运行
【发布时间】:2016-10-23 01:45:55
【问题描述】:

我开发了一个可以执行少量活动的 xamarin android 应用程序。我用 Xamarin 和 Visual Studio 2015 Update 3 开发了它。我总是用我的模拟器和我的一个设备(Samsung tab 3 lite)测试这个应用程序。我认为它适用于我的物理设备,因此它也适用于任何物理设备。这就是为什么我将它安装到另一部安卓手机上,但我发现它不起作用。它显示“不幸的是 myapp 已停止工作。”然后我测试了其他几台设备,如 asus zenfone 5、samsung tab 10" tab、LG nexus。除了我用来开发此应用程序的设备之外,我的应用程序没有在任何设备上运行。

部署后的错误屏幕。

【问题讨论】:

  • 您是否还部署了 Xamarin 依赖项或您的应用程序所需的任何其他第三方库?
  • @blackibiza 亲爱的我为该应用部署了 Xamarin Android Api-23 和 Mono Shared Runtime。但不需要任何其他第三方库。
  • 您应该将调试器附加到其中一个设备并查看日志
  • 你可以试试发布模式吗?
  • @Prabakaran 不工作 :(

标签: android xamarin xamarin.android


【解决方案1】:

您可以从以下 Xamarin 论坛中找到不同的可能解决方案。

https://forums.xamarin.com/discussion/10159/can-no-longer-run-android-applications-using-xamarin-4-2-and-xamarin-android-4-10-1

大多数人确认以下解决方案适用于他们。

设置<AndroidUseLatestPlatformSdk>True</AndroidUseLatestPlatformSdk>

<AndroidUseLatestPlatformSdk>False</AndroidUseLatestPlatformSdk>

在 Xamarin.Android 项目文件中。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-06-11
    • 1970-01-01
    • 2015-08-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多