LibGDX project cannot find resource folder

I suddenly had a problem with my build environment and I can’t understand why. I can start my project just fine using the gradlew desktop: start, however, when I try to start the project from Eclipse using the right mouse button as a desktop application (of course, on the desktop), it cannot find my pack file .atlas. Sure, the exsts file. I updated the eclipse project several times and the project works fine using the gradle command line. Yesterday he worked well. The only thing I can think of is that it made me mess, I launched the gradle command from the IDE yesterday, but I'm not sure how this could be messed up like that. It is important for me to find out this problem, since I cannot use the Eclipse debugger with this error. Can anyone guess why Eclipse doesn't see the resource folder?

+6
source share
1 answer

Probably your assets from the android project are incorrectly linked to the desktop project.

Your linked resource folder inside your desktop project should look like this: enter image description here

If this is not the case (or it does not exist), delete the folder (in the desktop project) and go to the project properties -> Java paths -> source -> link source

enter image description here

browse β†’ [select resource folder inside android project] β†’ complete

enter image description here

+7
source

Source: https://habr.com/ru/post/976254/


All Articles