- Изменено
Missing Imports for Eclipse and LibGDX
I get the following errors when trying to compile "spine-libgdx":
Project 'spine-libgdx' is missing required Java project: 'gdx' spine-libgdx Build path Build Path Problem
The project cannot be built until build path errors are resolved spine-libgdx Unknown Java Problem
I know this should be incredibly simple, but alas, I am in trouble. I am using Eclipse (Luna) in Ubuntu Linux 14.04 with OpenJDK-7. I have tried to import the projects of LibGDX into the build path path of "spine-libgdx" with no success.
Thanks.
spine-libgdx uses a project reference to libgdx so we don't have to check in the binaries for libgdx, which change quite often. If you don't run libgdx from source, then you need to right click the spine-libgdx project, Properties, Java Build Path, Projects, and delete the gdx
project reference. Next you'll need to let the spine-libgdx know where you have libgdx (eg, add gdx.jar
to Java Build Path, Libraries).
We'd love to have Gradle support for spine-libgdx, so you can just check a box during libgdx setup to include Spine support.
Most of the Java files worked fine after adding the JARs for libGDX and Box2D. Thank you!
What version of libGDX would you recommend for best compatibility? Otherwise, I will keep 1.5.5.
spine-libgdx is always up to date with libgdx in Git. When you update spine-libgdx, you can update libgdx to the latest nightly build, or likely the most recent release would also work.