Search code examples
javaandroideclipselibgdxaide-ide

How can I run a gradle based Libgdx eclipse project in AIDE on Android?


Before Gradle was used with libgdx I could just open my Eclipse project in AIDE and everything worked fine. As of libgdx version 1.0 I now use Gradle in Eclipse but I don't know how to get this to work with AIDE.

It's not finding the jar libraries because I get compile errors about unknown libgdx classes.

Do I have to add a local Maven repository or is there another way?

Thanx!


Solution

  • I had similar issues, and what worked for me is I started a libgdx project within AIDE (yes it has that function), let it set itself up properly with all the libraries etc in the lib folder, then copied my code into the respective core, android etc folders as appropriate.

    It's a bit fiddly, and I'm still not 100% there yet as I'm trying to work off two git branches, one for laptop (with gradle, your original project), and one for AIDE (with all the libraries already in it)

    It should at least help you get your project working.