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

      <tfoot id='CRGz1'></tfoot>
      1. <small id='CRGz1'></small><noframes id='CRGz1'>

      2. 无法为目标加载共享库“gdx"

        时间:2023-05-20

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

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

                    <tbody id='Bp8mW'></tbody>
                • <tfoot id='Bp8mW'></tfoot>
                  本文介绍了无法为目标加载共享库“gdx"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我遇到了与 中相同的问题这个问题,但那里的答案并没有解决我的问题.

                  I'm having the same issue as in this question, but the answers there doesn't solve my problem.

                  我没有通过 gdxsetup.jar 创建项目,我只是包含了 gdx.jar 和 gdx-backend-android.jar.我将 libgdx.so 添加到 libs/x86,但它仍然会引发异常.我该如何解决这个问题?

                  I didn't create project by gdxsetup.jar, I just included gdx.jar and gdx-backend-android.jar. I added the libgdx.so to libs/x86, but it stills throws an exception. How should I solve this?

                  Logcat:

                  02-16 11:59:45.604: E/AndroidRuntime(14788): FATAL EXCEPTION: main
                  02-16 11:59:45.604: E/AndroidRuntime(14788): java.lang.ExceptionInInitializerError
                  02-16 11:59:45.604: E/AndroidRuntime(14788):    at java.lang.Class.newInstanceImpl(Native Method)
                  02-16 11:59:45.604: E/AndroidRuntime(14788):    at java.lang.Class.newInstance(Class.java:1130)
                  02-16 11:59:45.604: E/AndroidRuntime(14788):    at android.app.Instrumentation.newActivity(Instrumentation.java:1078)
                  02-16 11:59:45.604: E/AndroidRuntime(14788):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2210)
                  02-16 11:59:45.604: E/AndroidRuntime(14788):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2349)
                  02-16 11:59:45.604: E/AndroidRuntime(14788):    at android.app.ActivityThread.access$700(ActivityThread.java:159)
                  02-16 11:59:45.604: E/AndroidRuntime(14788):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1316)
                  02-16 11:59:45.604: E/AndroidRuntime(14788):    at android.os.Handler.dispatchMessage(Handler.java:99)
                  02-16 11:59:45.604: E/AndroidRuntime(14788):    at android.os.Looper.loop(Looper.java:176)
                  02-16 11:59:45.604: E/AndroidRuntime(14788):    at android.app.ActivityThread.main(ActivityThread.java:5419)
                  02-16 11:59:45.604: E/AndroidRuntime(14788):    at java.lang.reflect.Method.invokeNative(Native Method)
                  02-16 11:59:45.604: E/AndroidRuntime(14788):    at java.lang.reflect.Method.invoke(Method.java:525)
                  02-16 11:59:45.604: E/AndroidRuntime(14788):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1046)
                  02-16 11:59:45.604: E/AndroidRuntime(14788):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862)
                  02-16 11:59:45.604: E/AndroidRuntime(14788):    at dalvik.system.NativeStart.main(Native Method)
                  02-16 11:59:45.604: E/AndroidRuntime(14788): Caused by: com.badlogic.gdx.utils.GdxRuntimeException: Couldn't load shared library 'gdx' for target: Linux, 32-bit
                  02-16 11:59:45.604: E/AndroidRuntime(14788):    at com.badlogic.gdx.utils.SharedLibraryLoader.load(SharedLibraryLoader.java:114)
                  02-16 11:59:45.604: E/AndroidRuntime(14788):    at com.badlogic.gdx.utils.GdxNativesLoader.load(GdxNativesLoader.java:34)
                  02-16 11:59:45.604: E/AndroidRuntime(14788):    at com.badlogic.gdx.backends.android.AndroidApplication.<clinit>(AndroidApplication.java:62)
                  02-16 11:59:45.604: E/AndroidRuntime(14788):    ... 15 more
                  02-16 11:59:45.604: E/AndroidRuntime(14788): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load gdx from loader dalvik.system.PathClassLoader[dexPath=/data/app/com.example.gamr-1.apk,libraryPath=/data/app-lib/com.example.gamr-1]: findLibrary returned null
                  02-16 11:59:45.604: E/AndroidRuntime(14788):    at java.lang.Runtime.loadLibrary(Runtime.java:355)
                  02-16 11:59:45.604: E/AndroidRuntime(14788):    at java.lang.System.loadLibrary(System.java:525)
                  02-16 11:59:45.604: E/AndroidRuntime(14788):    at com.badlogic.gdx.utils.SharedLibraryLoader.load(SharedLibraryLoader.java:110)
                  02-16 11:59:45.604: E/AndroidRuntime(14788):    ... 17 more
                  

                  如果有帮助,我正在运行 32 位 Linux.

                  If it helps, I'm running 32-bit Linux.

                  推荐答案

                  我发现这很简单:添加

                  static { System.loadLibrary("gdx");}
                  

                  这篇关于无法为目标加载共享库“gdx"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:LibGdx FPS 太多.如何限制? 下一篇:LibGDX 中 music.class 的 TweenAccessor

                  相关文章

                  最新文章

                  1. <legend id='Dx7df'><style id='Dx7df'><dir id='Dx7df'><q id='Dx7df'></q></dir></style></legend>

                      <bdo id='Dx7df'></bdo><ul id='Dx7df'></ul>
                    1. <tfoot id='Dx7df'></tfoot>

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

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