libgdx无法为目标linux 32位加载共享库gdx freetype,该如何解决? [英] Libgdx couldnt load shared library gdx freetype for target linux 32bit, how do I fix?

查看:83
本文介绍了libgdx无法为目标linux 32位加载共享库gdx freetype,该如何解决?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经开始使用libgdx,并且一直在尝试使freetypefont在Android上正常工作,但是无论我怎么努力,我似乎​​都无法使其正常工作.在尝试使用freetypefont之前,我的应用程序运行良好.我已经按照libgdx网站上的指示放置了扩展.该应用程序崩溃或在启动后立即停止工作.

I have started using libgdx and have been trying to get the freetypefont working on Android but no matter how hard I try I cannot seem to get it working. My app was working perfectly fine until I tried using freetypefont. I have put the extensions in as directed on the libgdx web site. The app crashes or stops working as soon as it starts.

控制台说无法为32位目标Linux加载共享库gdx-freetype.我觉得我已经尝试了一切.我已经将两个freetype和freetype本机文件放入了主游戏库中,将它们放入了桌面,仅将一个freetype放入了android lib中.我已经使用了最新的每晚构建.so文件作为armeabi文件夹,但还是一无所获.我还包括了此处建议的x86文件夹的每晚build .so文件,现在仍然没有.如果有人对此有任何帮助,请提供帮助.谢谢.

The console says couldn't load shared library gdx-freetype for target linux 32-bit. I feel like I have tried everything. I have put the two freetype and freetype native files into the main game libs, I have put them into the desktop and only put the freetype one into the android lib. I have used the latest nightly build .so files for the armeabi folders and still nothing. I have also included the nightly build .so file for the x86 folder as suggested on here and still nothing. If anyone has anything on this please help. Thanks.

推荐答案

您必须添加

You have to add what is listed here for each project dependency in your build.gradle file.

实现"com.badlogicgames.gdx:gdx-freetype:$ gdxVersion"
本地人"com.badlogicgames.gdx:gdx-freetype-platform:$ gdxVersion:natives-armeabi"
本地人"com.badlogicgames.gdx:gdx-freetype-platform:$ gdxVersion:natives-armeabi-v7a"
本地人"com.badlogicgames.gdx:gdx-freetype-platform:$ gdxVersion:natives-arm64-v8a"
本地人"com.badlogicgames.gdx:gdx-freetype-platform:$ gdxVersion:natives-x86"
本地人 "com.badlogicgames.gdx:gdx-freetype-platform:$ gdxVersion:natives-x86_64"

implementation "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-armeabi"
natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-armeabi-v7a"
natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-arm64-v8a"
natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-x86"
natives "com.badlogicgames.gdx:gdx-freetype-platform:$gdxVersion:natives-x86_64"

这篇关于libgdx无法为目标linux 32位加载共享库gdx freetype,该如何解决?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆