java.lang.UnsatisfiedLinkError: Couldn't load m...

给你一囗甜甜゛ 提交于 2019-12-05 02:41:51

java.lang.UnsatisfiedLinkError: Couldn't load mono: findLibrary returned null

11-27 14:54:28.770: E/AndroidRuntime(20334): FATAL EXCEPTION: main
11-27 14:54:28.770: E/AndroidRuntime(20334): java.lang.UnsatisfiedLinkError: Couldn't load mono: findLibrary returned null
11-27 14:54:28.770: E/AndroidRuntime(20334): at java.lang.Runtime.loadLibrary(Runtime.java:429)
11-27 14:54:28.770: E/AndroidRuntime(20334): at java.lang.System.loadLibrary(System.java:554)
11-27 14:54:28.770: E/AndroidRuntime(20334): at com.unity3d.player.UnityPlayer.<init>(Unknown Source)
11-27 14:54:28.770: E/AndroidRuntime(20334): at com.unity3d.player.UnityPlayerNativeActivity.onCreate(Unknown Source)
11-27 14:54:28.770: E/AndroidRuntime(20334): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1072)
11-27 14:54:28.770: E/AndroidRuntime(20334): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1794)
11-27 14:54:28.770: E/AndroidRuntime(20334): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1851)
11-27 14:54:28.770: E/AndroidRuntime(20334): at android.app.ActivityThread.access$1500(ActivityThread.java:132)
11-27 14:54:28.770: E/AndroidRuntime(20334): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1038)
11-27 14:54:28.770: E/AndroidRuntime(20334): at android.os.Handler.dispatchMessage(Handler.java:99)
11-27 14:54:28.770: E/AndroidRuntime(20334): at android.os.Looper.loop(Looper.java:143)
11-27 14:54:28.770: E/AndroidRuntime(20334): at android.app.ActivityThread.main(ActivityThread.java:4277)
11-27 14:54:28.770: E/AndroidRuntime(20334): at java.lang.reflect.Method.invokeNative(Native Method)
11-27 14:54:28.770: E/AndroidRuntime(20334): at java.lang.reflect.Method.invoke(Method.java:507)
11-27 14:54:28.770: E/AndroidRuntime(20334): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
11-27 14:54:28.770: E/AndroidRuntime(20334): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
11-27 14:54:28.770: E/AndroidRuntime(20334): at dalvik.system.NativeStart.main(Native Method)
11-27 14:54:28.770: W/ActivityManager(125):   Force finishing activity com.yhkd.area/com.unity3d.player.UnityPlayerNativeActivity
11-27 14:54:29.270: W/ActivityManager(125): Activity pause timeout for HistoryRecord{409434d0 com.yhkd.area/com.unity3d.player.UnityPlayerNativeActivity}

最近公司游戏要适配更多机型,做了一些测试,但是装到HTC c510e上后,发现上面问题,经过一番搜索,找到了下面一段话:

Just posting a possible cause of this error that we found:

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"

in the log.

于是按上面说的,把编译参数的Device Filter改成了ARMv6 with VFP,问题搞定。。。


易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!