2015-04-23 55 views
0

我得到試圖從該庫http://www.aurelienribon.com/blog/projects/physics-body-editor/物理身體編輯器錯誤

Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException: java.lang.UnsatisfiedLinkError: com.badlogic.gdx.physics.box2d.PolygonShape.newPolygonShape()J 
     at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:127) 
    Caused by: java.lang.UnsatisfiedLinkError: com.badlogic.gdx.physics.box2d.PolygonShape.newPolygonShape()J 
     at com.badlogic.gdx.physics.box2d.PolygonShape.newPolygonShape(Native Method) 
     at com.badlogic.gdx.physics.box2d.PolygonShape.<init>(PolygonShape.java:29) 
     at aurelienribon.bodyeditor.BodyEditorLoader.<init>(BodyEditorLoader.java:31) 

我怎樣才能修復它初始化BodyEditorLoader當這個錯誤?

回答

1

,看看它被稱爲代碼,但我敢說,問題是調用你的世界中,這必須在這裏被稱爲是一個例子:

這是一個例子編譯好:

oWorld = new World(gravedad, dormir); 
    loader = new BodyEditorLoaderNewW(
      Gdx.files.internal("data/test.json")); 

這是一個例子不能編譯好:

loader = new BodyEditorLoaderNewW(
      Gdx.files.internal("data/test.json")); 
    oWorld = new World(gravedad, dormir); 

recive此:

java.lang.UnsatisfiedLinkError: com.badlogic.gdx.physics.box2d.PolygonShape.newPolygonShape() J

注意到世界上的差異被稱爲一個後就可給出:

它有可能在將來能,需要這樣的: BodyEditorLoader - noSuchMethod

但如果這是不是你可以把一些解決方案的代碼,我希望你能幫到