Xamarin Android 应用程序在发布模式下崩溃 [英] Xamarin Android app crashes on Release mode
问题描述
几个月前,我将 Xamarin 更新为 4.5.0.476(Xamarin Android 7.3.1.2),今天更新应用程序时,我发现我无法在发布模式下运行我的 apk,因为它在运行时崩溃.我不明白为什么.
Several months ago I updated Xamarin to 4.5.0.476 (Xamarin Android 7.3.1.2) and today, updating an App, I discovered that I cannot run my apk in release mode because it crashes when runs. And I can't understand why.
我尝试在 android manifest 上设置所有类型的权限.
链接器设置是仅 SDK 程序集,但我也尝试过无.
我清理和重建了好几次.
没有可能在启动时失败的条件代码.
I tried to set all type of permissions on the android manifest.
Linker setting is SDK Assembly only but I also tried None.
I cleaned and rebuilt several times.
There's not conditional code that can fail on start-up.
没什么,打开主活动时应用总是崩溃.
Nothing, app always crashes when opening main activity.
推荐答案
已解决!在 Advanced Android Option armeabi-v7a 架构中未选中,只有 armeabi.我打开了选项,应用启动时没有遇到错误.
Solved! In Advanced Android Option armeabi-v7a architecture was unchecked, there was only armeabi. I switched option on and app starts without run into error.
这篇关于Xamarin Android 应用程序在发布模式下崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!