【问题标题】:Cannot Deploy on Android Emulator Xamarin Forms无法在 Android 模拟器 Xamarin 表单上部署
【发布时间】:2021-02-07 15:40:55
【问题描述】:

我有这个跨平台应用程序,可以在 iOS 和 Android 物理设备上很好地部署,但是当我尝试在 Android 模拟器上运行它时,我收到了这个错误:

无法从 /data/user/0/it.HangoverApp.Hangover/files/.覆盖/links/libmonosgen-2.0.so dlopen Mono 运行时:dlopen 失败:“/data/app /Mono.Android.DebugRuntime-33RyZeuaossylXX2LQhf0w==/lib/x86/libmonosgen-32bit-2.0.so" 具有意外的 e_machine: 3 (EM_386)

我目前使用的是 Visual Studio Mac 8.8.7,我在 Windows 上的同事没有遇到任何问题, 模拟设备配置: Pixel 2 Pie 9.0 - API 28,x86 处理器。

有什么想法吗?

【问题讨论】:

  • 你的mac是什么版本的?
  • MacBook Pro 2014 年中 10.15.7 Catalina
  • 请查看 Supported Architectures 包含 x86,关于指定 Supported Architectures,请查看:docs.microsoft.com/en-us/xamarin/android/app-fundamentals/…
  • 这对我来说是固定的!但是 x86 不是已弃用吗?
  • 现在你的问题解决了吗?

标签: c# android xamarin emulation


【解决方案1】:

根据你的描述和报错信息,我建议你可以查看Supported Architectures包含x86,关于指定Supported Architectures,你可以看看这个帖子:

https://docs.microsoft.com/en-us/xamarin/android/app-fundamentals/cpu-architectures?tabs=macos#how-to-specify-supported-architectures

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-03-30
    • 1970-01-01
    • 1970-01-01
    • 2017-05-28
    • 2017-05-18
    • 1970-01-01
    • 2017-10-01
    • 2018-05-03
    相关资源
    最近更新 更多