Tuesday 20 August 2013

The type com.badlogic.gdx.ApplicationListener cannot be resolved

The type com.badlogic.gdx.ApplicationListener cannot be resolved

Today ,when i opened eclipse suddenly this error appeared in one of my
libgdx projects
Code:
public static void main (String[] argv) {
if (application == null) {
application = new Main();
}
LwjglApplicationConfiguration conf=new LwjglApplicationConfiguration() ;
conf.title="XXXXXApp";
conf.width=(int)(480/1.3f);
conf.height=(int)(800/1.3f);
conf.useGL20=false;
new LwjglApplication(new XXXXXApp(application,new DesktopInterface()),
conf);
}
Error:
-The type com.badlogic.gdx.ApplicationListener cannot be resolved. It is
indirectly referenced from required .class files
-The constructor LwjglApplication(ApplicationListener,
LwjglApplicationConfiguration) refers to the missing type
ApplicationListener
I double checked for missing jars and everything are the same as my other
projects that are working and they use exactly the same code .
What i tried:
-Restart eclipse
-Remove and add again the libdgx jars
-Refresh
The jars that are right now in my build path are:
-gdx-backend-lwjgl-natives.jar
-gdx-backend-lwjgl.jar
-gdx-natives.jar

No comments:

Post a Comment