我剛開始使用AndEngine應用程序,我想使用Physics Box2D擴展。我已將andenginephysicsbox2dextension.jar
放入/lib
並將其添加到Eclipse中的Build Path中。我也把andenginephysicsbox2dextension.so
放在/libs/armeabi
。 (我沒有做任何事情,它是否也需要添加到項目的某個地方?)。當我嘗試編譯我的應用時,我得到一個帶有以下堆棧跟蹤的FC:如何讓我的應用程序使用AndEngine Phyiscs Box2D Extension?
FATAL EXCEPTION: main
java.lang.UnsatisfiedLinkError: newWorld
at com.badlogic.gdx.physics.box2d.World.newWorld(Native Method)
at com.badlogic.gdx.physics.box2d.World.<init>(World.java:101)
at org.anddev.andengine.extension.physics.box2d.PhysicsWorld.<init>(PhysicsWorld.java:61)
at org.anddev.andengine.extension.physics.box2d.PhysicsWorld.<init>(PhysicsWorld.java:57)
at com.tommedley.helloandengine.HelloAndEngine.onLoadScene(HelloAndEngine.java:96)
at org.anddev.andengine.ui.activity.BaseGameActivity.doResume(BaseGameActivity.java:169)
at org.anddev.andengine.ui.activity.BaseGameActivity.onWindowFocusChanged(BaseGameActivity.java:85)
at com.android.internal.policy.impl.PhoneWindow$DecorView.onWindowFocusChanged(PhoneWindow.java:2047)
at android.view.View.dispatchWindowFocusChanged(View.java:3940)
at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:659)
at android.view.ViewRoot.handleMessage(ViewRoot.java:1974)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3835)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:847)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:605)
at dalvik.system.NativeStart.main(Native Method)
我在做什麼錯?
沒有運氣,同樣的錯誤 – fredley