It is impossible to load the texture, it works fine, now it does not work, I do not know why.
import com.badlogic.gdx.graphics.Texture;
public class MiJuego implements ApplicationListener {
public Texture textura = new Texture(Gdx.files.internal("prueba.png"));
@Override
public void create() {
}
An exception in the thread "main" java.lang.NullPointerException at com.alex.version1.MiJuego. (MiJuego.java:16) at com.alex.version1.Main.main (Main.java:14)
Line 16 is exactly the one in which I create the texture. I tested it in several projects, but it does not work. Images are installed in the resources folder in my android project.
source
share