java - Libgdx Project crashing after exporting -
i'm trying create game libgdx. game works when i'm testing inside eclipse when try export either android or desktop game starts , crashes immediately.
the problem game cannot find assets , throws unhandled exception. use following way load of assets.
mainmenu = new sprite(new texture(gdx.files.internal("images/screens/mainmenu.png")));
i have searched exported jar , assets located inside it, yet reason game cannot find them. on desktop work fine when place .jar file assets folder.
when create new libgdx project , export it, works fine, add java classes stops working.
i have tried searching similar questions here, none of answers solved problem.
it can file inside assets folder not wanted.
i had similar problem, in assets folder .xcf file gimp file. deleted .xcf file , problem solved.
Comments
Post a Comment