有一段时间我正在用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(以防万一),清理项目。
答案 0 :(得分:0)
我用新版本替换了所有libgdx的罐子,可能很多罐子已经过时了