在真实设备上播放 Android 端口
我正在 playn 上开发一款游戏,但在创建 Android 端口时遇到一些问题。
当我在平板电脑上安装 .apk 并尝试打开它时,仅显示一条消息,说明该应用程序已强制关闭。
因此,我在设备上安装了 aLogcat 应用程序来查看发生了什么,并发现了以下异常:
“java.lang.IllegalArgumentException:没有配置与 confgiSpec 匹配 在 android.opengl.GLSurfaceViewBaseConfigChooser.chooseConfig(GLSurfaceView.java:760)"
这发生在真实设备上而不是模拟器上,我的平板电脑运行的是 android 2.2 Froyo 并且它支持 OpenGL,所以我不知道出了什么问题。
PS.:我尝试了一个基于 playn 构建的 Android 市场游戏,并得到了相同的错误 http://www.tikalk.com/java/writing-real -games-android-using-playn
如果有人对这个问题有任何想法,那就太糟糕了。 谢谢。
I'm developing a game on playn and I'm having some problems to create an Android Port.
When I install the .apk on my tablet and try to open it, just show a message saying that the application was forced do close.
So I've installed the aLogcat app on the device to see what's going on and figured out the following exception:
"java.lang.IllegalArgumentException: No configs match confgiSpec
at android.opengl.GLSurfaceViewBaseConfigChooser.chooseConfig(GLSurfaceView.java:760)"
This happen on a real device not on the emulator, and my tablet is running android 2.2 Froyo and it's support OpenGL, so I don't know what is wrong.
PS.: I tried an android market game that was built on playn and got the same error
http://www.tikalk.com/java/writing-real-games-android-using-playn
If anyone has any idea about this problem would be very hellpful.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在网上进行了大量研究后,我意识到问题出在我的平板电脑上,因为它不支持 OpenGL ES 2,而这是 playn 工作的最低要求。
After a lot of research on the web I realize that the problem was my tablet, because it don't support OpenGL ES 2, and that's a minimum requirement for playn to work.