Mono for Android 链接异常
我正在尝试构建的小应用程序遇到问题。当我打开链接时,我尝试了仅 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该异常来自
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!