Mono for Android 链接异常

发布于 2024-12-22 08:39:26 字数 449 浏览 6 评论 0原文

我正在尝试构建的小应用程序遇到问题。当我打开链接时,我尝试了仅 SDK 程序集和 SDK 和用户程序集,当我尝试构建 APK 时,我遇到了相同的异常。

异常:

System.Exception: The "LinkAssemblies" task failed unexpectedly.
System.OverflowException: Arithmetic operation resulted in an overflow.
  at Mono.Cecil.PE.ByteBuffer.ReadUInt32()
  at Mono.Cecil.Cil.CodeReader.ReadOperand(Instruction instruction)
  ...

当我刚刚创建一个新的 Mono 项目并尝试构建一个打开链接的 APK 时,我得到了完全相同的异常。

感谢任何帮助..

I have a problem with a small app I'm trying to build. When I turn on linking, I've tried both SDK Assemblies only and SDK and user assemblies, I get the same exception when I'm trying to build an APK.

Exception:

System.Exception: The "LinkAssemblies" task failed unexpectedly.
System.OverflowException: Arithmetic operation resulted in an overflow.
  at Mono.Cecil.PE.ByteBuffer.ReadUInt32()
  at Mono.Cecil.Cil.CodeReader.ReadOperand(Instruction instruction)
  ...

I get exactly the same exception when I just create a new Mono project and try to build an APK with linking turned on.

Grateful for any help..

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

新一帅帅 2024-12-29 08:39:26

该异常来自Mono.Cecil.dll,即链接器所基于的库。这是相当罕见的,需要进行调试。

如果不了解有关如何生成该程序集的更多信息(例如编译器、混淆器...),我什至无法提出解决方法(除了不链接)。

您可以在 http://bugzilla.xamarin.com 并附加有问题的程序集?谢谢!

This exception comes from Mono.Cecil.dll, i.e. the library on which the linker is based. That's quite uncommon and it will need to be debugged.

I can't even propose a workaround (except not linking) without knowing more about how that assembly was generated (e.g. compiler, obfustactor...)

Can you fill a bug report at http://bugzilla.xamarin.com and attach the offending assembly ? Thanks!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文