Tag: ikvm

ios上的libgdx GdxRuntimeException无法加载文件

我决定把我的应用程序从Android移动到iOS。 应用程序使用libgdx库。 我使用libgdx生成了ios子项目,并使用Xamarin Studio将其打开。 所有图像都从my-project-android / assets / data链接。 所有的图像都设置了构build操作>内容。 现在,每当从Xamarin工作室运行项目,我得到GdxRuntimeException Coldn't加载文件:data / background.png。 这个文件是我在我的应用程序中加载的第一个图像。 我所有的操作,我已经在我的Mac模拟器和iPhone设备上完成。 堆栈跟踪: com.badlogic.gdx.utils.GdxRuntimeException: Couldn't load file: /data/background.png —> System.Exception: unknown protocol: file at java.net.URL..ctor (java.net.URL context, System.String spec, java.net.URLStreamHandler handler) [0x00000] in <filename unknown>:0 — End of inner exception stack trace — at com.badlogic.gdx.graphics.Pixmap..ctor (com.badlogic.gdx.files.FileHandle file) [0x0004c] in /Users/badlogic/jenkins/workspace/libgdx-mac/gdx/src/com/badlogic/gdx/graphics/Pixmap.java:140 at […]

在MonoDeveloper中获取java.net.MalformedURLException

嘿,我是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 […]