Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

In my game, I've been trying to use the physics body editor for libgdx, but I kept on getting an error. So I thought there was probably something wrong with my code so I took the example off of the website (http://www.aurelienribon.com/blog/projects/physics-body-editor/), and tried running that. But I got the same exact error on the same line of code.

The line of code from the website's example that's creating the error is

BodyEditorLoader loader = new BodyEditorLoader(Gdx.files.internal("data/test.json"));

and the error is

Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException: java.lang.NoSuchMethodError: com.badlogic.gdx.utils.JsonReader.parse(Ljava/lang/String;)Ljava/lang/Object; at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:118) Caused by: java.lang.NoSuchMethodError: com.badlogic.gdx.utils.JsonReader.parse(Ljava/lang/String;)Ljava/lang/Object; at aurelienribon.bodyeditor.BodyEditorLoader.readJson(BodyEditorLoader.java:179) at aurelienribon.bodyeditor.BodyEditorLoader.(BodyEditorLoader.java:41) at com.Jon.App.App.createBottle(App.java:129) at com.Jon.App.App.create(App.java:76) at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:132) at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:112)

Any ideas on how to fix this?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

Apparently the JSON API has changed recently, but there is a maintenance problem with the physics body editor.

More details at https://code.google.com/p/libgdx/issues/detail?id=1418.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.