我正在使用 libGDX v 1.2.0 并在 Eclipse 中安装了 roboVM 插件 0.0.14。我创建了一个在桌面和 iOS 模拟器 (iOS 7.1) 上按预期工作的应用程序,但是当我将其设置为在运行 iOS 7.1 的 iPhone 4s 上运行时,它会安装并显示 libGDX 初始屏幕,然后崩溃并且控制台显示这个错误
com.badlogic.gdx.utils.GdxRuntimeException: Couldn't load file: noodle.png
at com.badlogic.gdx.graphics.Pixmap.<init>(Pixmap.java)
at com.badlogic.gdx.graphics.glutils.FileTextureData.prepare(FileTextureData.java)
at com.badlogic.gdx.graphics.Texture.load(Texture.java)
at com.badlogic.gdx.graphics.Texture.<init>(Texture.java)
at com.badlogic.gdx.graphics.Texture.<init>(Texture.java)
at com.badlogic.gdx.graphics.Texture.<init>(Texture.java)
at com.badlogic.gdx.graphics.Texture.<init>(Texture.java)
at com.chiefpeanut.noodle.Assets.load(Assets.java)
at com.chiefpeanut.noodle.MyGame.create(MyGame.java)
at com.badlogic.gdx.backends.iosrobovm.IOSGraphics.draw(IOSGraphics.java)
at com.badlogic.gdx.backends.iosrobovm.IOSGraphics$1.draw(IOSGraphics.java)
at org.robovm.apple.uikit.UIView.$cb$drawRect$(UIView.java)
at org.robovm.apple.uikit.UIApplication.main(Native Method)
at org.robovm.apple.uikit.UIApplication.main(UIApplication.java)
at com.chiefpeanut.noodle.IOSLauncher.main(IOSLauncher.java)
Caused by: java.io.IOException: couldn't load pixmap bad zlib header
at com.badlogic.gdx.graphics.g2d.Gdx2DPixmap.<init>(Gdx2DPixmap.java)
... 15 more
到底是什么导致了这个错误,为什么它只发生在我的手机上,而不是模拟器上。
提前感谢您的帮助!!!