嘿,我是 MonoDeveloper 的新手。我正在尝试将 libgdx 代码移植到 iOS 平台。我的 Libgdx 代码在桌面和 Android 手机上完美运行。
但是当我使用 MonoDeveloper 在 iPhone 模拟器上运行它时,它给了我这个错误:
Unhandled Exception: 0 iosgame
[ERROR] FATAL UNHANDLED EXCEPTION: java.net.MalformedURLException: unknown protocol: file.
0x000e8932 mono_handle_exception_internal_first_pass + 3058 1 iosgame
0x000ea012 mono_handle_exception_internal + 1602 2 iosgame
0x000eab5f mono_handle_exception + 47 3 iosgame
0x0012dcb2 mono_x86_throw_exception + 306 4 ???
0x0b73df8f 0x0 + 192143247 at java.net.URL..ctor (java.net.URL,string)
<IL 0x00004, 0x00018> at java.net.URL..ctor (string)
<IL 0x00003, 0x00018> at java.net.URI.toURL ()
<IL 0x00023, 0x00064> at IKVM.Internal.AssemblyClassLoader.MakeResourceURL(System.Reflection.Assembly,string)
<IL 0x00016, 0x0006c> at IKVM.Internal.AssemblyClassLoader/AssemblyLoader.FindResources(string)
<IL 0x0003c, 0x00084> at IKVM.Internal.AssemblyClassLoader/<GetResourcesImpl>c__Iterator0.MoveNext()
<IL 0x00068, 0x00070> at IKVM.Internal.AssemblyClassLoader/<GetResourcesImpl>c__Iterator0.MoveNext()
<IL 0x003dc, 0x0069f> at IKVM.NativeCode.ikvm.runtime.AssemblyClassLoader.getResource(java.lang.ClassLoader,System.Reflection.Assembly,string)
<IL 0x00034, 0x0009c> at ikvm.runtime.AssemblyClassLoader.getResource(java.lang.ClassLoader,System.Reflection.Assembly,string)
<IL 0x00006, 0x00018> at ikvm.runtime.AssemblyClassLoader.getResource (string)
<IL 0x00000, 0x0001c>
请给我建议,我哪里错了。
这可能是 libgdx 或 IKVM(用于将 Java 代码移植到 .NET/Mono 运行时的库)中的错误。您向 libgdx 开发人员报告过吗?
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)