Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已经使用 Xamarin 开发了一个 android 应用程序。它在模拟器上运行良好,但在真实设备上崩溃。apk 安装在设备上并在打开应用程序时显示“应用程序已意外停止。请重试”并强制关闭应用程序。目标框架,最低 sdk 版本等一切都很好,但仍然无法正常工作。任何帮助将不胜感激。谢谢
当您使用 Xamarin Studio(或 Visual Studio)进行调试时,Xamarin.Android 将分别安装 Mono 运行时和支持文件。如果您的应用程序是调试构建的应用程序,那么问题将是共享运行时不存在。因此,在“发布”模式下,请确保您取消选中项目选项中的“使用共享单声道运行时”。我已附上截图,请通过。