关于神庙逃亡这款游戏在很多款的手机上出现闪退的解决方案(Android)

目前神庙逃亡这款游戏很火,我的酷派8022出现闪退。

作为开发人员,不要放弃任何一个修改Bug的机会。

打开Eclipse 查看奔溃的日志如下:


02-21 20:43:25.164: ERROR/AndroidRuntime(8922): java.lang.UnsatisfiedLinkError: Couldn't load mono: findLibrary returned null
02-21 20:43:25.164: ERROR/AndroidRuntime(8922):     at java.lang.Runtime.loadLibrary(Runtime.java:429)
02-21 20:43:25.164: ERROR/AndroidRuntime(8922):     at java.lang.System.loadLibrary(System.java:554)
02-21 20:43:25.164: ERROR/AndroidRuntime(8922):     at com.unity3d.player.UnityPlayer.<init>(Unknown Source)
02-21 20:43:25.164: ERROR/AndroidRuntime(8922):     at com.unity3d.player.UnityPlayerNativeActivity.onCreate(Unknown Source)
02-21 20:43:25.164: ERROR/AndroidRuntime(8922):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
02-21 20:43:25.164: ERROR/AndroidRuntime(8922):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1615)
02-21 20:43:25.164: ERROR/AndroidRuntime(8922):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1671)
02-21 20:43:25.164: ERROR/AndroidRuntime(8922):     at android.app.ActivityThread.access$1500(ActivityThread.java:117)
02-21 20:43:25.164: ERROR/AndroidRuntime(8922):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
02-21 20:43:25.164: ERROR/AndroidRuntime(8922):     at android.os.Handler.dispatchMessage(Handler.java:99)
02-21 20:43:25.164: ERROR/AndroidRuntime(8922):     at android.os.Looper.loop(Looper.java:130)
02-21 20:43:25.164: ERROR/AndroidRuntime(8922):     at android.app.ActivityThread.main(ActivityThread.java:3694)
02-21 20:43:25.164: ERROR/AndroidRuntime(8922):     at java.lang.reflect.Method.invokeNative(Native Method)
02-21 20:43:25.164: ERROR/AndroidRuntime(8922):     at java.lang.reflect.Method.invoke(Method.java:507)
02-21 20:43:25.164: ERROR/AndroidRuntime(8922):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
02-21 20:43:25.164: ERROR/AndroidRuntime(8922):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:624)
02-21 20:43:25.164: ERROR/AndroidRuntime(8922):     at dalvik.system.NativeStart.main(Native Method)

具体原因,通过网上查找,原因如下:

For us it was running an ARMv7 build on an ARMv6 device. This is tricky to do as running from Unity (3.5.6) will detect the mismatch and not install the ARMv7 build on an ARMv6 device. However, our game was with QA and they managed it and it did indeed crash out with

"11-21 09:40:23.990 E/AndroidRuntime( 1509): java.lang.UnsatisfiedLinkError: Couldn't load mono: findLibrary returned null"


也就是说尝试把armv7运行在armv6的设备上,结果导致奔溃。

修改如下:

把编译参数的Device Filter改成了ARMv6 with VFP

你可能感兴趣的:(关于神庙逃亡这款游戏在很多款的手机上出现闪退的解决方案(Android))