简体   繁体   中英

How to install Tween Engine in Libgdx (Eclipse project)

I am a newbie in Libgdx. I just started up Libgdx but I got struck up with TWEEN ENGINE ..!! I need the image to fade in and out. So I have added jar file as per this link Tween Engine but I am getting this error

Exception in thread "main" java.lang.NoSuchFieldError: isWindows
at com.badlogic.gdx.backends.lwjgl.LwjglNativesLoader.load(LwjglNativesLoader.java:44)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.<init>(LwjglApplication.java:73)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.<init>(LwjglApplication.java:61)
at com.myfirstgame.game.desktop.DesktopLauncher.main(DesktopLauncher.java:10)

I have added jar in libs folder under android project then I have also added as an external jar file under properties->Libraries but nothing worked out.I really don't know how to resolve it. Please help.Thanks in advance !!

I resolved the error.I have downloaded jar from this link TweenEngine extracted in a folder and added jar to my project.

I added jar by, Project->Properties->Libraries->and added both of the extracted files one by one.Then again,

Project->Properties->order and export->and click both of the jar files added click ok and Clean your project Its done :)

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM