libgdx game not working in android phones

后端 未结 2 651
小蘑菇
小蘑菇 2021-01-15 23:58

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

相关标签:
2条回答
  • 2021-01-16 00:56

    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.

    0 讨论(0)
  • 2021-01-16 00:59

    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:

    enter image description here

    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).

    0 讨论(0)
提交回复
热议问题