gpt4 book ai didi

android - LibGDX + gdx-freetype + BlueStacks

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:49:21 26 4
gpt4 key购买 nike

我的应用程序可以在真实的 Android 设备和桌面上正常运行。 Homever 当我试图在 BlueStacks 模拟器上启动它时,我遇到了一些问题。已从此处下载并添加到 libs .so 文件 http://libgdx.googlecode.com/svn/tags/0.9.6/extensions/gdx-freetype/libs/linux32/

但仍然:

11-08 21:14:10.280: E/AndroidRuntime(1378): FATAL EXCEPTION: GLThread 9
11-08 21:14:10.280: E/AndroidRuntime(1378): com.badlogic.gdx.utils.GdxRuntimeException: Couldn't load shared library 'gdx-freetype' for target: Linux, 32-bit
11-08 21:14:10.280: E/AndroidRuntime(1378): at com.badlogic.gdx.utils.SharedLibraryLoader.load(SharedLibraryLoader.java:110)
11-08 21:14:10.280: E/AndroidRuntime(1378): at com.badlogic.gdx.graphics.g2d.freetype.FreeType.initFreeType(FreeType.java:541)
11-08 21:14:10.280: E/AndroidRuntime(1378): at com.badlogic.gdx.graphics.g2d.freetype.FreeTypeFontGenerator.<init>(FreeTypeFontGenerator.java:64)
11-08 21:14:10.280: E/AndroidRuntime(1378): at com.axl.where.test.create(test.java:153)
11-08 21:14:10.280: E/AndroidRuntime(1378): at com.badlogic.gdx.backends.android.AndroidGraphics.onSurfaceChanged(AndroidGraphics.java:334)
11-08 21:14:10.280: E/AndroidRuntime(1378): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1356)
11-08 21:14:10.280: E/AndroidRuntime(1378): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1118)
11-08 21:14:10.280: E/AndroidRuntime(1378): Caused by: java.lang.UnsatisfiedLinkError: Couldn't load gdx-freetype: findLibrary returned null
11-08 21:14:10.280: E/AndroidRuntime(1378): at java.lang.Runtime.loadLibrary(Runtime.java:429)
11-08 21:14:10.280: E/AndroidRuntime(1378): at java.lang.System.loadLibrary(System.java:554)
11-08 21:14:10.280: E/AndroidRuntime(1378): at com.badlogic.gdx.utils.SharedLibraryLoader.load(SharedLibraryLoader.java:106)
11-08 21:14:10.280: E/AndroidRuntime(1378): ... 6 more

有什么想法吗? LibGDX 0.9.9

最佳答案

您需要在您的 libs 目录中添加一个 x86 文件夹(与 armeabi 目录一起),并将此文件复制到该文件夹​​中:

http://libgdx.badlogicgames.com/nightlies/dist/extensions/gdx-freetype/x86/

此外,您正在使用 v0.9.6 文件 o.O 使用夜曲:

http://libgdx.badlogicgames.com/nightlies/dist/extensions/gdx-freetype/

关于android - LibGDX + gdx-freetype + BlueStacks,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19866866/

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