GdxRuntimeException: Couldn't load file

前端 未结 2 430
醉酒成梦
醉酒成梦 2021-01-29 01:36

I am following this tutorial on libgdx. What i am trying to do is loading a texture from a copy of badlogic.jpg (copy is called wawa.jpg):

public class HelloWorl         


        
相关标签:
2条回答
  • 2021-01-29 01:44

    I also had the same problem, but my mistake was a file name error.

    The file was called gameScreenshot.PNG, and I had put in the string as "gameScreenshot.png".

    In Windows it accepted the file name fine, but on android it didn't work, so I had to rename it to "gameScreenshot.PNG"

    0 讨论(0)
  • 2021-01-29 01:48

    solved: i didn't put the new texture into the "assets" folder of android project

    0 讨论(0)
提交回复
热议问题