gpt4 book ai didi

crash - 不幸的是,应用程序已停止工作 libGDX 应用程序

转载 作者:行者123 更新时间:2023-12-03 17:48:34 25 4
gpt4 key购买 nike

当尝试在 Android 模式下运行我的应用程序时,它只会在启动时停止。在桌面模式下运行它工作得很好。我正在使用 libGDX 和 Android Studio。

我不知道是什么原因造成的。就在今天突然来了。以前在模拟器或电话中运行它从来没有任何问题。
01-06 04:37:04.853 2790-2790/? I/art: Not late-enabling -Xcheck:jni (already on)
01-06 04:37:05.030 2790-2790/com.badlogic.cubocy.android W/System: ClassLoader referenced unknown path: /data/app/com.badlogic.cubocy.android-1/lib/x86
01-06 04:37:05.046 2790-2790/com.badlogic.cubocy.android D/AndroidRuntime: Shutting down VM
01-06 04:37:05.046 2790-2790/com.badlogic.cubocy.android E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.badlogic.cubocy.android, PID: 2790
java.lang.ExceptionInInitializerError
at java.lang.Class.newInstance(Native Method)
at android.app.Instrumentation.newActivity(Instrumentation.java:1067)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2317)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Caused by: com.badlogic.gdx.utils.GdxRuntimeException: Couldn't load shared library 'gdx' for target: Linux, 32-bit
at com.badlogic.gdx.utils.SharedLibraryLoader.load(SharedLibraryLoader.java:118)
at com.badlogic.gdx.utils.GdxNativesLoader.load(GdxNativesLoader.java:34)
at com.badlogic.gdx.backends.android.AndroidApplication.(AndroidApplication.java:61)
at java.lang.Class.newInstance(Native Method) 
at android.app.Instrumentation.newActivity(Instrumentation.java:1067) 
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2317) 
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) 
at android.app.ActivityThread.-wrap11(ActivityThread.java) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:148) 
at android.app.ActivityThread.main(ActivityThread.java:5417) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 
Caused by: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.badlogic.cubocy.android-1/base.apk"],nativeLibraryDirectories=[/data/app/com.badlogic.cubocy.android-1/lib/x86, /vendor/lib, /system/lib]]] couldn't find "libgdx.so"
at java.lang.Runtime.loadLibrary(Runtime.java:367)
at java.lang.System.loadLibrary(System.java:1076)
at com.badlogic.gdx.utils.SharedLibraryLoader.load(SharedLibraryLoader.java:113)
at com.badlogic.gdx.utils.GdxNativesLoader.load(GdxNativesLoader.java:34) 
at com.badlogic.gdx.backends.android.AndroidApplication.(AndroidApplication.java:61) 
at java.lang.Class.newInstance(Native Method) 
at android.app.Instrumentation.newActivity(Instrumentation.java:1067) 
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2317) 
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476) 
at android.app.ActivityThread.-wrap11(ActivityThread.java) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:148) 
at android.app.ActivityThread.main(ActivityThread.java:5417) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616) 
01-06 04:37:07.840 2790-2790/? I/Process: Sending signal. PID: 2790 SIG: 9

最佳答案

  • 已解决 -

  • 重新安装 Android Studio 解决了这个问题。

    关于crash - 不幸的是,应用程序已停止工作 libGDX 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34625843/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com