<bdo id='pf75C'></bdo><ul id='pf75C'></ul>
<legend id='pf75C'><style id='pf75C'><dir id='pf75C'><q id='pf75C'></q></dir></style></legend>
  • <small id='pf75C'></small><noframes id='pf75C'>

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

        libgdx android 启动失败

        时间:2023-05-19
        <tfoot id='Skczn'></tfoot>

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

              <tbody id='Skczn'></tbody>

                  <legend id='Skczn'><style id='Skczn'><dir id='Skczn'><q id='Skczn'></q></dir></style></legend>
                  本文介绍了libgdx android 启动失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  这是我第一次使用 libgdx,我想试试安装后提供的默认应用程序 gdx-setup-ui.当我点击 Eclipse 上的运行按钮时,它运行良好,正如它所显示的那样

                  This is my first time using libgdx and I would like to try the default application provided after the setup gdx-setup-ui. It runs fine when I hit the run button on eclipse as it has shown

                  [2014-05-01 21:40:14 - my-gdx-game-android] Uploading my-gdx-game-android.apk onto device 'emulator-5554'
                  [2014-05-01 21:40:15 - my-gdx-game-android] Installing my-gdx-game-android.apk...
                  [2014-05-01 21:40:16 - my-gdx-game-android] Success!
                  [2014-05-01 21:40:16 - my-gdx-game-android] Starting activity com.me.mygdxgame.MainActivity on device emulator-5554
                  [2014-05-01 21:40:16 - my-gdx-game-android] ActivityManager: WARNING: linker: libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix.
                  [2014-05-01 21:40:16 - my-gdx-game-android] ActivityManager: Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.me.mygdxgame/.MainActivity }
                  

                  但不幸的是,在模拟器上,我的 LibGDX 游戏已停止.

                  but on the emulator it said unfortunately, my LibGDX Game has stopped.

                  这些都显示在 logCat 中:

                  These are shown in the logCat:

                  05-01 17:02:04.936: D/dalvikvm(2034): Trying to load lib /data/app-lib/com.me.mygdxgame-1/libgdx.so 0xb103cb78
                  05-01 17:02:04.936: D/dalvikvm(2034): Added shared lib /data/app-lib/com.me.mygdxgame-1/libgdx.so 0xb103cb78
                  05-01 17:02:04.936: D/dalvikvm(2034): No JNI_OnLoad found in /data/app-lib/com.me.mygdxgame-1/libgdx.so 0xb103cb78, skipping init
                  05-01 17:02:04.936: D/AndroidRuntime(2034): Shutting down VM
                  05-01 17:02:04.936: W/dalvikvm(2034): threadid=1: thread exiting with uncaught exception (group=0xb0d34b20)
                  05-01 17:02:04.996: E/AndroidRuntime(2034): FATAL EXCEPTION: main
                  05-01 17:02:04.996: E/AndroidRuntime(2034): Process: com.me.mygdxgame, PID: 2034
                  05-01 17:02:04.996: E/AndroidRuntime(2034): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.me.mygdxgame/com.me.mygdxgame.MainActivity}: com.badlogic.gdx.utils.GdxRuntimeException: Libgdx requires OpenGL ES 2.0
                  05-01 17:02:04.996: E/AndroidRuntime(2034):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)
                  05-01 17:02:04.996: E/AndroidRuntime(2034):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
                  05-01 17:02:04.996: E/AndroidRuntime(2034):     at android.app.ActivityThread.access$800(ActivityThread.java:135)
                  05-01 17:02:04.996: E/AndroidRuntime(2034):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
                  05-01 17:02:04.996: E/AndroidRuntime(2034):     at android.os.Handler.dispatchMessage(Handler.java:102)
                  05-01 17:02:04.996: E/AndroidRuntime(2034):     at android.os.Looper.loop(Looper.java:136)
                  05-01 17:02:04.996: E/AndroidRuntime(2034):     at android.app.ActivityThread.main(ActivityThread.java:5017)
                  05-01 17:02:04.996: E/AndroidRuntime(2034):     at java.lang.reflect.Method.invokeNative(Native Method)
                  05-01 17:02:04.996: E/AndroidRuntime(2034):     at java.lang.reflect.Method.invoke(Method.java:515)
                  05-01 17:02:04.996: E/AndroidRuntime(2034):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
                  05-01 17:02:04.996: E/AndroidRuntime(2034):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
                  05-01 17:02:04.996: E/AndroidRuntime(2034):     at dalvik.system.NativeStart.main(Native Method)
                  05-01 17:02:04.996: E/AndroidRuntime(2034): Caused by: com.badlogic.gdx.utils.GdxRuntimeException: Libgdx requires OpenGL ES 2.0
                  05-01 17:02:04.996: E/AndroidRuntime(2034):     at com.badlogic.gdx.backends.android.AndroidGraphics.createGLSurfaceView(AndroidGraphics.java:121)
                  05-01 17:02:04.996: E/AndroidRuntime(2034):     at com.badlogic.gdx.backends.android.AndroidGraphics.<init>(AndroidGraphics.java:101)
                  05-01 17:02:04.996: E/AndroidRuntime(2034):     at com.badlogic.gdx.backends.android.AndroidGraphics.<init>(AndroidGraphics.java:94)
                  05-01 17:02:04.996: E/AndroidRuntime(2034):     at com.badlogic.gdx.backends.android.AndroidApplication.init(AndroidApplication.java:130)
                  05-01 17:02:04.996: E/AndroidRuntime(2034):     at com.badlogic.gdx.backends.android.AndroidApplication.initialize(AndroidApplication.java:96)
                  05-01 17:02:04.996: E/AndroidRuntime(2034):     at com.me.mygdxgame.MainActivity.onCreate(MainActivity.java:15)
                  05-01 17:02:04.996: E/AndroidRuntime(2034):     at android.app.Activity.performCreate(Activity.java:5231)
                  05-01 17:02:04.996: E/AndroidRuntime(2034):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
                  05-01 17:02:04.996: E/AndroidRuntime(2034):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
                  05-01 17:02:04.996: E/AndroidRuntime(2034):     ... 11 more
                  

                  另外,我删除了 MainActivity.java 中的 cfg.useGL20 = true; 行,因为它一直给我错误,我试图快速修复它,它不起作用.我真的需要在模拟器中使用它,因为我没有在 android 设备上拥有它.

                  Also, I have deleted the line cfg.useGL20 = true; in the MainActivity.java as it keeps giving me error and I tried to quick fix it, it does not work. I really need it to be used in an emulator as I does not own at android device.

                  推荐答案

                  我能够通过以下方式在 Macbook Air 上完成这项工作:

                  I was able to make this work on a Macbook Air by:

                  1. 打开 Android 虚拟设备管理器(例如在 Eclipse 中,它位于 Window 菜单下)
                  2. 点击您要使用的设备的编辑
                  3. 在出现的对话框中选中使用主机 GPU"框,如图所示

                  保存并重试.

                  我猜这取决于您计算机的显卡是否支持 OpenGL2.0,但我也怀疑这在当今很普遍.

                  I'm guessing this depends on your computer's graphics card support OpenGL2.0, but I also suspect that this is pretty common nowadays.

                  这篇关于libgdx android 启动失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何在 mac osx 上加载 libgdx 桌面应用程序? 下一篇:在 Eclipse 中打开 LibGDX 项目(ADT Bundle)

                  相关文章

                  最新文章

                  <tfoot id='06vsl'></tfoot>

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

                      <small id='06vsl'></small><noframes id='06vsl'>