1

有一段时间我正在用 libgdx 制作游戏,我只在桌面上尝试过,现在当我尝试在手机上运行它时,它会抛出这个:

11-02 23:16:19.171: W/GL2JNIView(2702): creating OpenGL ES 2.0 context
11-02 23:16:19.211: D/dalvikvm(2702): Trying to load lib /data/data/com.infiniteangle.raywararcade/lib/libgdx.so 0x40514af0
11-02 23:16:19.211: D/dalvikvm(2702): Shared lib '/data/data/com.infiniteangle.raywararcade/lib/libgdx.so' already loaded in same CL 0x40514af0
11-02 23:16:19.211: W/dalvikvm(2702): No implementation found for native Lcom/badlogic/gdx/backends/android/AndroidGL20;.init ()V
11-02 23:16:19.211: W/dalvikvm(2702): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/badlogic/gdx/backends/android/AndroidGL20;
11-02 23:16:19.221: W/dalvikvm(2702): threadid=8: thread exiting with uncaught exception (group=0x40015568)
11-02 23:16:19.221: E/AndroidRuntime(2702): FATAL EXCEPTION: GLThread 9
11-02 23:16:19.221: E/AndroidRuntime(2702): java.lang.ExceptionInInitializerError
11-02 23:16:19.221: E/AndroidRuntime(2702):     at com.badlogic.gdx.backends.android.AndroidGraphics.setupGL(AndroidGraphics.java:286)
11-02 23:16:19.221: E/AndroidRuntime(2702):     at com.badlogic.gdx.backends.android.AndroidGraphics.onSurfaceCreated(AndroidGraphics.java:334)
11-02 23:16:19.221: E/AndroidRuntime(2702):     at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1348)
11-02 23:16:19.221: E/AndroidRuntime(2702):     at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1118)
11-02 23:16:19.221: E/AndroidRuntime(2702): Caused by: java.lang.UnsatisfiedLinkError: init
11-02 23:16:19.221: E/AndroidRuntime(2702):     at com.badlogic.gdx.backends.android.AndroidGL20.init(Native Method)
11-02 23:16:19.221: E/AndroidRuntime(2702):     at com.badlogic.gdx.backends.android.AndroidGL20.<clinit>(AndroidGL20.java:28)

游戏使用OpenGL es 2.0

我的 libs 文件夹如下所示:

在此处输入图像描述

我尝试重新启动 Eclipse(以防万一),清理项目。

4

1 回答 1

0

我用新版本替换了所有 libgdx 的 jar,可能很多 jar 已经过时了

于 2014-07-25T14:41:42.780 回答