Eclipse libgdx import cannot be resolved

I am following this tutorial and i get an error in eclipse for these imports:

import com.badlogic.gdx.scenes.scene2d.OnActionCompleted;
import com.badlogic.gdx.scenes.scene2d.actions.Delay;
import com.badlogic.gdx.scenes.scene2d.actions.FadeIn;
import com.badlogic.gdx.scenes.scene2d.actions.FadeOut;
import com.badlogic.gdx.scenes.scene2d.actions.Sequence;
import com.badlogic.gdx.scenes.scene2d.ui.Align;
import com.badlogic.gdx.scenes.scene2d.ui.Image;
import com.badlogic.gdx.scenes.scene2d.ui.Image.Scaling;

all other libgdx imports work fine but these give me the import cannot be resolved error

does anyone of you know how to fix this?


Now that I can see my code, yes – the libgdx version used in the steigert demos is not the latest, and lots of scene2d has changed since then.

You can get his refactored/updated code at:

Leave a Reply

Your email address will not be published. Required fields are marked *