My libGDX project uses the Tween API for animations on my splash screen. On running the android launcher, the application force closes with the following error:
06-04 11:07:02.257: E/AndroidRuntime(3905): FATAL EXCEPTION: GLThread
06-04 11:07:02.257: E/AndroidRuntime(3905): java.lang.NoClassDefFoundError: com.ekshiksha.vcl.screens.SpriteTween
06-04 11:07:02.257: E/AndroidRuntime(3905): at com.ekshiksha.vcl.screens.SplashScreen.show(SplashScreen.java:55)
06-04 11:07:02.257: E/AndroidRuntime(3905): at com.badlogic.gdx.Game.setScreen(Game.java:62)
06-04 11:07:02.257: E/AndroidRuntime(3905): at com.ekshiksha.vcl.MyVclLab.create(MyVclLab.java:16)
06-04 11:07:02.257: E/AndroidRuntime(3905): at com.badlogic.gdx.backends.android.AndroidGraphics.onSurfaceChanged(AndroidGraphics.java:292)
06-04 11:07:02.257: E/AndroidRuntime(3905): at com.badlogic.gdx.backends.android.surfaceview.GLSurfaceViewCupcake$GLThread.guardedRun(GLSurfaceViewCupcake.java:708)
06-04 11:07:02.257: E/AndroidRuntime(3905): at com.badlogic.gdx.backends.android.surfaceview.GLSurfaceViewCupcake$GLThread.run(GLSurfaceViewCupcake.java:646)
Is it because I did not add the tween engine .jar
file to my build path in android project? And should I link the jar
file or make a new libs
folder in android project and copy it there?
Okay, the solution in the following post solved my problem of launching the android application.
Tween.registerAccessor NoClassDefFoundError
All I needed to do is link the tween API library in the android project and check it in order and export.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.