Sorry if this is in the wrong section. If it is, can someone please put it in the right one. Anyway, when I try using libGDX and I put my resources in the android project, I get an error that says:Couldn't load file apple.png (that is one of the resources). Can you please help meThanks

Ok, source at least? File loading is so basic that you must be doing something wrong in your code (and I thought you were learning LWJGL).

Resources go in the assets folder, and you have to make a linked folder in the desktop project with the assets folder in the android project, otherwise resources will have to be synced manually (copy+paste).

For loading from the assets folder you must use Gdx.files.internal (not sure exactly what local does but stick to internal), make sure you're not using Gdx.files.absolute as that will require a full directory (e.g. C:/Users/User/EclipseWorkspace/...)

You seem to be loading the textures correctly so I assume it must be a problem with your project setup.Is "apple.png" in the Android "assets" folder AND in the desktop "assets" folder? (Did you link the folders? If you didn't you should)Did you hit refresh on the android project, and the desktop project if the assets folder isn't linked?

Oh yeah, and this is definitely the wrong section. Why would a libgdx resources problem go under OpenGL Development?

I made a project using the setup jar. I then put all my stuff into the android assets. I imported the project into eclipse. I then copied the code from my former project into my new one. i could see the pictures (and music) in the assets folder in eclipse. It still doesn't work.

Like I said, you need to link the assets in the android to the assets in the desktop...does the ui do that? Never used it. Full error trace? Maybe you're using OpenGLES 1 and your image's dimensions aren't a power of 2?

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org