I just tried building the source from the above post, and the app builds fine with minor edits, but crashes at line 118 of your sample code:
PhysicsFactory.createBoxBody(this.mPhysicsWorld, ground, BodyType.StaticBody, wallFixtureDef);
The logcat trace shows that method
org.anddev.andengine.entity.shape.IShape.getVelocityX is missing,
01-28 15:32:34.237: ERROR/AndroidRuntime(264): Uncaught handler: thread main exiting due to uncaught exception
01-28 15:32:34.295: ERROR/AndroidRuntime(264): java.lang.NoSuchMethodError: org.anddev.andengine.entity.shape.IShape.getVelocityX
01-28 15:32:34.295: ERROR/AndroidRuntime(264): at org.anddev.andengine.extension.physics.box2d.PhysicsFactory.createBoxBody(PhysicsFactory.java:87)
01-28 15:32:34.295: ERROR/AndroidRuntime(264): at org.anddev.andengine.extension.physics.box2d.PhysicsFactory.createBoxBody(PhysicsFactory.java:76)
01-28 15:32:34.295: ERROR/AndroidRuntime(264): at com.SmartPhoneGizmos.BalloonWallpaper.BalloonWallpaper.onLoadScene(BalloonWallpaper.java:132)
01-28 15:32:34.295: ERROR/AndroidRuntime(264): at org.anddev.andengine.extension.ui.livewallpaper.BaseLiveWallpaperService.onCreate(BaseLiveWallpaperService.java:47)
01-28 15:32:34.295: ERROR/AndroidRuntime(264): at android.app.ActivityThread.handleCreateService(ActivityThread.java:2780)
01-28 15:32:34.295: ERROR/AndroidRuntime(264): at android.app.ActivityThread.access$3200(ActivityThread.java:119)
01-28 15:32:34.295: ERROR/AndroidRuntime(264): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1917)
01-28 15:32:34.295: ERROR/AndroidRuntime(264): at android.os.Handler.dispatchMessage(Handler.java:99)
01-28 15:32:34.295: ERROR/AndroidRuntime(264): at android.os.Looper.loop(Looper.java:123)
01-28 15:32:34.295: ERROR/AndroidRuntime(264): at android.app.ActivityThread.main(ActivityThread.java:4363)
01-28 15:32:34.295: ERROR/AndroidRuntime(264): at java.lang.reflect.Method.invokeNative(Native Method)
01-28 15:32:34.295: ERROR/AndroidRuntime(264): at java.lang.reflect.Method.invoke(Method.java:521)
01-28 15:32:34.295: ERROR/AndroidRuntime(264): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
01-28 15:32:34.295: ERROR/AndroidRuntime(264): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
01-28 15:32:34.295: ERROR/AndroidRuntime(264): at dalvik.system.NativeStart.main(Native Method)
So what am I doing wrong here?
Additional info:
- I picked up the latest versions of the engine and box2d wrapper .jar files, and put the .so files into the /libs/armebi folder.
- The "minor edits" referred to above include addressing the deprecated getBottomLayer() and removed addEntity()
Please help...
Thanks!