i am trying to build android game from this libgdx based games but the android app crashes when ported to android game the libgdx code i downloaded from http://rengelbert.co
I encountered the same problems and found a solution:
1) Open project settings of the project "FroggerLibGDXDesktop"
2) Go to "Java build path" / "Order and export"
3) Check all the jar files
4) Open project settings of the project "FroggerLibGDXAndroid"
5) Go to "Java build path" / "Order and export"
6) Check at least the "gdx-backend-android.jar" and the project "FroggerLibGDXDesktop"
Run the android app in emulator. Worked for me.
Please try this and see if it solves the crash:
Go to the properties for the Android Project, make sure that the Jars and the Desktop Project are being exported. Check that Java Build Path -> Order and Export looks like this:
If you want to use a different Android version than 4.1 that's fine (I just don't have other versions installed so I changed it to 4.1).