<bdo id='gEexl'></bdo><ul id='gEexl'></ul>

<small id='gEexl'></small><noframes id='gEexl'>

  • <legend id='gEexl'><style id='gEexl'><dir id='gEexl'><q id='gEexl'></q></dir></style></legend>
  • <tfoot id='gEexl'></tfoot>

    <i id='gEexl'><tr id='gEexl'><dt id='gEexl'><q id='gEexl'><span id='gEexl'><b id='gEexl'><form id='gEexl'><ins id='gEexl'></ins><ul id='gEexl'></ul><sub id='gEexl'></sub></form><legend id='gEexl'></legend><bdo id='gEexl'><pre id='gEexl'><center id='gEexl'></center></pre></bdo></b><th id='gEexl'></th></span></q></dt></tr></i><div id='gEexl'><tfoot id='gEexl'></tfoot><dl id='gEexl'><fieldset id='gEexl'></fieldset></dl></div>

      1. 在模拟器中运行时,libgdx 在 helloworld 应用程序上

        时间:2023-07-27

            <legend id='nS6pE'><style id='nS6pE'><dir id='nS6pE'><q id='nS6pE'></q></dir></style></legend><tfoot id='nS6pE'></tfoot>

              <tbody id='nS6pE'></tbody>

            <i id='nS6pE'><tr id='nS6pE'><dt id='nS6pE'><q id='nS6pE'><span id='nS6pE'><b id='nS6pE'><form id='nS6pE'><ins id='nS6pE'></ins><ul id='nS6pE'></ul><sub id='nS6pE'></sub></form><legend id='nS6pE'></legend><bdo id='nS6pE'><pre id='nS6pE'><center id='nS6pE'></center></pre></bdo></b><th id='nS6pE'></th></span></q></dt></tr></i><div id='nS6pE'><tfoot id='nS6pE'></tfoot><dl id='nS6pE'><fieldset id='nS6pE'></fieldset></dl></div>

              <small id='nS6pE'></small><noframes id='nS6pE'>

                <bdo id='nS6pE'></bdo><ul id='nS6pE'></ul>
                1. 本文介绍了在模拟器中运行时,libgdx 在 helloworld 应用程序上引发异常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我已按照 http://www.youtube.com 上的教程进行操作/watch?v=vLx_72qxK_0&feature=player_embedded 并使用 libgdx 库创建了一个简单的应用程序,该程序使应用程序具有红色背景.

                  I've followed the tutorial on http://www.youtube.com/watch?v=vLx_72qxK_0&feature=player_embedded and created a simple app with the libgdx library that makes an application with a red background.

                  当我将它作为独立的桌面应用程序运行时,它运行良好,但是当我运行 -android 版本时,会引发以下异常并且应用程序无法启动.

                  This works fine when I run it as a stand alone desktop app, but when I run the -android version the exception below is thrown and the application fails to start.

                  02-04 18:25:27.536: W/dalvikvm(456): Exception Ljava/lang/UnsatisfiedLinkError; thrown while initializing Lcom/badlogic/gdx/backends/android/AndroidApplication;
                  02-04 18:25:27.536: W/dalvikvm(456): Class init failed in newInstance call (Lorg/gravity/main/GameAndroidActivity;)
                  02-04 18:25:27.567: D/AndroidRuntime(456): Shutting down VM
                  02-04 18:25:27.567: W/dalvikvm(456): threadid=1: thread exiting with uncaught exception (group=0x40015560)
                  02-04 18:25:27.676: E/AndroidRuntime(456): FATAL EXCEPTION: main
                  02-04 18:25:27.676: E/AndroidRuntime(456): java.lang.ExceptionInInitializerError
                  02-04 18:25:27.676: E/AndroidRuntime(456):  at java.lang.Class.newInstanceImpl(Native Method)
                  02-04 18:25:27.676: E/AndroidRuntime(456):  at java.lang.Class.newInstance(Class.java:1409)
                  02-04 18:25:27.676: E/AndroidRuntime(456):  at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
                  02-04 18:25:27.676: E/AndroidRuntime(456):  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1561)
                  02-04 18:25:27.676: E/AndroidRuntime(456):  at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
                  02-04 18:25:27.676: E/AndroidRuntime(456):  at android.app.ActivityThread.access$1500(ActivityThread.java:117)
                  02-04 18:25:27.676: E/AndroidRuntime(456):  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
                  02-04 18:25:27.676: E/AndroidRuntime(456):  at android.os.Handler.dispatchMessage(Handler.java:99)
                  02-04 18:25:27.676: E/AndroidRuntime(456):  at android.os.Looper.loop(Looper.java:123)
                  02-04 18:25:27.676: E/AndroidRuntime(456):  at android.app.ActivityThread.main(ActivityThread.java:3683)
                  02-04 18:25:27.676: E/AndroidRuntime(456):  at java.lang.reflect.Method.invokeNative(Native Method)
                  02-04 18:25:27.676: E/AndroidRuntime(456):  at java.lang.reflect.Method.invoke(Method.java:507)
                  02-04 18:25:27.676: E/AndroidRuntime(456):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
                  02-04 18:25:27.676: E/AndroidRuntime(456):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
                  02-04 18:25:27.676: E/AndroidRuntime(456):  at dalvik.system.NativeStart.main(Native Method)
                  02-04 18:25:27.676: E/AndroidRuntime(456): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load gdx: findLibrary returned null
                  02-04 18:25:27.676: E/AndroidRuntime(456):  at java.lang.Runtime.loadLibrary(Runtime.java:429)
                  02-04 18:25:27.676: E/AndroidRuntime(456):  at java.lang.System.loadLibrary(System.java:554)
                  02-04 18:25:27.676: E/AndroidRuntime(456):  at com.badlogic.gdx.utils.GdxNativesLoader.load(GdxNativesLoader.java:111)
                  02-04 18:25:27.676: E/AndroidRuntime(456):  at com.badlogic.gdx.backends.android.AndroidApplication.<clinit>(AndroidApplication.java:58)
                  02-04 18:25:27.676: E/AndroidRuntime(456):  ... 15 more
                  

                  有人对这个库有任何经验吗?

                  Does anyone have any experience with this library?

                  推荐答案

                  通过确保 armeabi 和 armeabi-v7a 文件夹位于 android 项目的/libs 中来解决问题.

                  fixed the issue by making sure the armeabi and armeabi-v7a folders were in /libs of the android project.

                  这篇关于在模拟器中运行时,libgdx 在 helloworld 应用程序上引发异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:使用 libgdx 绘制带纹理的多边形 下一篇:iOS的Libgdx项目在模拟器上通过robovm编译时显示l

                  相关文章

                  最新文章

                    <bdo id='qf7il'></bdo><ul id='qf7il'></ul>

                    <small id='qf7il'></small><noframes id='qf7il'>

                    <legend id='qf7il'><style id='qf7il'><dir id='qf7il'><q id='qf7il'></q></dir></style></legend>

                      <tfoot id='qf7il'></tfoot>
                    1. <i id='qf7il'><tr id='qf7il'><dt id='qf7il'><q id='qf7il'><span id='qf7il'><b id='qf7il'><form id='qf7il'><ins id='qf7il'></ins><ul id='qf7il'></ul><sub id='qf7il'></sub></form><legend id='qf7il'></legend><bdo id='qf7il'><pre id='qf7il'><center id='qf7il'></center></pre></bdo></b><th id='qf7il'></th></span></q></dt></tr></i><div id='qf7il'><tfoot id='qf7il'></tfoot><dl id='qf7il'><fieldset id='qf7il'></fieldset></dl></div>