Android Development Tools R17 break your Libgdx Project?
Some kind folks on the forums informed me that the latest Android ADT plugin breaks libgdx projects. The reason for this is that an Android Eclipse project no longer adds the sources of referenced Java projects to the APK it compiles. Why they had to do this is beyond me, the fix is simple however.
- Click on your Android Project
- Select Properties
- Select Java Build Path
- Select Order and Export
- Check all your references, e.g. the gdx.jar, the gdx-backend-android.jar, your main code project etc.
That’s it. Here’s a before and after image for a project that uses the jars.
You don’t necessarily have to check the .jar files in this case if they are in your Android project’s libs/ folder.
If you run from SVN, just check the referenced gdx and gdx-backend-android project in the same settings dialog.
Now i have to redo all the tutorials…