如何调试仅在发布模式下崩溃的Android应用 [英] How do I debug an Android app that crashes only in Release Mode

查看:84
本文介绍了如何调试仅在发布模式下崩溃的Android应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一切都在调试模式下运行,但在发布模式下崩溃。在调试模式下可用的哪些必需权限未在发布模式下打开?

Everything works in Debug Mode but Crashes in Release Mode. What required permissions are available in Debug Mode that are not turned on in Release mode?

EDIT

当我将链接设置为无时,我会越过第一个屏幕进入登录屏幕。但是,当我添加发布许可 Internet 时,它第一次尝试读取远程Entity Framework Core表时便崩溃了。

When I set Linking to None, I get past the first screen to my Login screen. However, when I added the Release permission Internet, the first time it tries to read a remote Entity Framework Core Table it crashes.

编辑2

在发布模式下,如果我选中使用共享运行时,该应用程序运行正常。

In Release Mode, if I check Use Shared Runtime, the app runs fine.

编辑3

我已打开在发布模式下进行调试。以下行仅在发布模式下引发System.TypeInitializationException:

I have turned on Debugging while in Release mode Temporarily. The Following line throws a System.TypeInitializationException only in Release Mode:

if (_context.bma_users.Any(p => p.username == _name.Text) && _name.Text != string.Empty)


推荐答案

答案是将其他受支持的编码设置为 West 中的 Android选项屏幕下的项目属性。似乎没有什么关系,但我正在尝试所有可能的组合,但这终于奏效了。

The answer was to set Additional supported encodings to West in the Android Options screen under Project Properties. It doesn't seem related but I was trying every possible combination and this finally worked.

这篇关于如何调试仅在发布模式下崩溃的Android应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆