How do I fix a NoClassDefFoundError while launching Android LibGDX Project?

后端 未结 1 1427
小鲜肉
小鲜肉 2021-01-24 02:03

I am currently learning the LibGDX game engine (version 1.9.4) and I keep running into a compiling error when trying to run my android version of my project. I did some research

1条回答
  •  醉话见心
    2021-01-24 02:37

    Right Click your Android project->Properties->Java Build Path->Order and Exports Export all your jars that you are using.

    still having problem running project on android check if JRE is set to 1.6.

    Change the JRE from the main Java Project from 1.7 to 1.6 and try to run it on android.

    Eclipse-> main-java-project--> Expand the directory--> Right click on JRE System library--> Check "Execution environment" --> select JavaES 1.6 jre6-> Click Ok

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