com.badlogic.gdx.utils.GdxRuntimeException: Couldn't load file: - Error

人盡茶涼 提交于 2019-11-29 18:13:10

You've got the error right in front of you...

 <directory>../android/assets</directory>

the resource you are looking for is NOT in the "data" folder. It's in the "Assets" which is in the android project.

Also when loading textures you don't need to use a FileHandler.. This would be enough:

texture = new Texture("image.png");

which would be the root (assets) folder of the android project

I also suffer this problem,I seemingly solve it. That is:I get GDX project from excuting gdx-setup.jar,and obtain all so files in lib directroy. that's all!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!