我是java和andengine的新手,并尝试制作已发布的跳线游戏以了解它是如何工作的。一切都很好,但如果我尝试加载PhysicsWorld,我会得到以下错误:
E/AndroidRuntime: FATAL EXCEPTION: UpdateThread
Process: com.alex.neuertest, PID: 15463
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.alex.neuertest-1/base.apk", zip file "/data/app/com.alex.neuertest-1/split_lib_dependencies_apk.apk", zip file "/data/app/com.alex.neuertest-1/split_lib_slice_0_apk.apk", zip file "/data/app/com.alex.neuertest-1/split_lib_slice_1_apk.apk", zip file "/data/app/com.alex.neuertest-1/split_lib_slice_2_apk.apk", zip file "/data/app/com.alex.neuertest-1/split_lib_slice_3_apk.apk", zip file "/data/app/com.alex.neuertest-1/split_lib_slice_4_apk.apk", zip file "/data/app/com.alex.neuertest-1/split_lib_slice_5_apk.apk", zip file "/data/app/com.alex.neuertest-1/split_lib_slice_6_apk.apk", zip file "/data/app/com.alex.neuertest-1/split_lib_slice_7_apk.apk", zip file "/data/app/com.alex.neuertest-1/split_lib_slice_8_apk.apk", zip file "/data/app/com.alex.neuertest-1/split_lib_slice_9_apk.apk"],nativeLibraryDirectories=[/data/app/com.alex.neuertest-1/lib/x86, /data/app/com.alex.neuertest-1/base.apk!/lib/x86, /data/app/com.alex.neuertest-1/split_lib_dependencies_apk.apk!/lib/x86, /data/app/com.alex.neuertest-1/split_lib_slice_0_apk.apk!/lib/x86, /data/app/com.alex.neuertest-1/split_lib_slice_1_apk.apk!/lib/x86, /data/app/com.alex.neuertest-1/split_lib_slice_2_apk.apk!/lib/x86, /data/app/com.alex.neuertest-1/split_lib_slice_3_apk.apk!/lib/x86, /data/app/com.alex.neuertest-1/split_lib_slice_4_apk.apk!/lib/x86, /data/app/com.alex.neuertest-1/split_lib_slice_5_apk.apk!/lib/x86, /data/app/com.alex.neuertest-1/split_lib_slice_6_apk.apk!/lib/x86, /data/app/com.alex.neuertest-1/split_lib_slice_7_apk.apk!/lib/x86, /data/app/com.alex.neuertest-1/split_lib_slice_8_apk.apk!/lib/x86, /data/app/com.alex.neuertest-1/split_lib_slice_9_apk.apk!/lib/x86, /system/lib, /vendor/lib]]] couldn't find "libandenginephysicsbox2dextension.so"
at java.lang.Runtime.loadLibrary0(Runtime.java:972)
at java.lang.System.loadLibrary(System.java:1530)
at org.andengine.extension.physics.box2d.PhysicsWorld.<clinit>(PhysicsWorld.java:35)
at com.alex.neuertest.GameScene.createPhysics(GameScene.java:345)
at com.alex.neuertest.GameScene.createScene(GameScene.java:96)
at com.alex.neuertest.BaseScene.<init>(BaseScene.java:41)
at com.alex.neuertest.GameScene.<init>(GameScene.java:0)
at com.alex.neuertest.Core.SceneManager$1.onTimePassed(SceneManager.java:148)
at org.andengine.engine.handler.timer.TimerHandler.onUpdate(TimerHandler.java:94)
at org.andengine.engine.handler.UpdateHandlerList.onUpdate(UpdateHandlerList.java:47)
at org.andengine.engine.Engine.onUpdateUpdateHandlers(Engine.java:618)
at org.andengine.engine.Engine.onUpdate(Engine.java:605)
at org.andengine.engine.LimitedFPSEngine.onUpdate(LimitedFPSEngine.java:57)
at org.andengine.engine.Engine.onTickUpdate(Engine.java:568)
at org.andengine.engine.Engine$UpdateThread.run(Engine.java:858)
也许有人可以帮助我哪里错了?我怎么说,我是这个系统的新人xD
答案 0 :(得分:0)
答案 1 :(得分:0)
项目无法找到libandenginephysicsbox2dextension.so
。检查项目中是否有.so
个文件。对于不同的cpu架构,AndEnginePhysicsBox2DExtension内有三个.so
文件。