PlayN,Android版本的新项目出现错误

发布于 2024-12-15 06:38:46 字数 393 浏览 2 评论 0原文

我一直在关注 http://code.google.com/p 上的 PlayN 初学者教程/playn/wiki/BeginnerInstallationGuide

所以基本上我已经下载了 PlayN 源代码,设置了一个新的 Maven 项目。 然后,桌面 Java 版本将按所述运行。对于 Android 版本,我收到此错误: E/AndroidRuntime?(370): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1180)

我按原样保留生成的源,有任何线索吗?

I've been following the beginner PlayN tutorial at http://code.google.com/p/playn/wiki/BeginnerInstallationGuide

So basically I've downloaded PlayN sources, setup a new Maven project.
Then, the Desktop Java version runs as described. With the Android version, I get this error: E/AndroidRuntime?(370): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1180)

I left the generated sources as is, any clues?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

九公里浅绿 2024-12-22 06:38:46

目前无法通过 Eclipse 测试 Android。如果您想在 Eclipse 中测试 PlayN 游戏,则需要通过命令行来完成,如下所示:

cd mygame
mvn clean package
cd android
mvn android:deploy

另外,由于模拟器中对 OpenGL 的支持缺乏或有限,我不认为您当前可以使用模拟器进行测试。因此,您需要在真实设备上进行测试。

Testing Android via Eclipse is not currently working. If you want to test a PlayN game in Eclipse, you need to do it via the command line, like so:

cd mygame
mvn clean package
cd android
mvn android:deploy

Also, I don't believe that you can currently test using the emulator due to lacking or limited support of OpenGL in the emulator. So you'll need to test on a real device.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文