5

我正在 Xamarin 中制作一个 android 项目,我需要在 AsyncTask 中执行一些任务。但是我的代码没有到达 RunInBackground()。如果我用 DoInBackground() 替换 RunInBackground() ,我会收到一条错误消息 - “找不到合适的方法来覆盖”。这是我得到的内部异常

[mono] Unable to find seq points for method '(wrapper managed-to-native) System.Diagnostics.Debugger:Mono_UnhandledException_internal (System.Exception)'.
[] * Assertion at /Users/builder/data/lanes/monodroid-mlion-monodroid-4.8.0-branch/3f1c339b/source/mono/mono/mini/debugger-agent.c:5150, condition `sp' not met
[mono-rt] Stacktrace:
[mono-rt] 
[mono-rt] 
[mono-rt] =================================================================
[mono-rt] Got a SIGSEGV while executing native code. This usually indicates
[mono-rt] a fatal error in the mono runtime or one of the native libraries 
[mono-rt] used by your application.
[mono-rt] =================================================================
[mono-rt] 
Step request failed: Exception of type 'Mono.Debugger.Soft.VMDisconnectedException' was thrown.

我需要做什么改变?

4

0 回答 0