Hi I am using Libgdx to create a game. I am currently trying to add a button to my main menu screen. I have created a stage and have added the button actor to the stage. The problem is my app crashes on start up and my logcat says there is an error reading file data/ui/uiskin.json. This is really frustrating me please can you help me solve the error.
I have followed this exactly to no avail this is also where I got the uiskin files.Using scene2d.ui with libgdx: where does the skin come from?. Sample code below.
Skin skin = new Skin(Gdx.files.internal("data/ui/uiskin.json"));
stage = new Stage();
btnlogin = new TextButton("click me",skin);
stage.addActor(btnlogin);
Render method
Gdx.gl.glClearColor(1, 1, 1, 1);
Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
stage.act(Math.min(Gdx.graphics.getDeltaTime(), 1 / 30f));
stage.draw();