unity3d,我发了个demo。在arm手机上跑ok,有台手机x86架构的,运行失败,黑屏,控制台提示找不到dll,该如何处理?
报错如下:
AndroidPlayer(EPSON_EMBT3C@192.168.1.164)</i> AndroidJavaException: java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.isoftstone.epgls-2/base.apk"],nativeLibraryDirectories=[/data/app/com.isoftstone.epgls-2/lib/x86, /vendor/lib, /system/lib]]] couldn't find "libEasyAR.so"
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.isoftstone.epgls-2/base.apk"],nativeLibraryDirectories=[/data/app/com.isoftstone.epgls-2/lib/x86, /vendor/lib, /system/lib]]] couldn't find "libEasyAR.so"
at java.lang.Runtime.loadLibrary(Runtime.java:366)
at java.lang.System.loadLibrary(System.java:988)
at cn.easyar.engine.EasyAR.loadLibraries(EasyAR.java:234)
at com.unity3d.player.UnityPlayer.nativeRender(Native Method)
at com.unity3d.player.UnityPlayer.c(Unknown Source)
at com.unity3d.player.UnityPlayer$c$1.handleMessage(Unknown Source)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:135)
at com.unity3d.player.UnityPlayer$c.run(Unknown Source)
at UnityEngine.AndroidJNISafe.CheckException () [0x0008c] in /Users/builduser/buildslave/unity/build/Runtime/Export/AndroidJNISafe.cs:24
at UnityEngine.AndroidJNISafe.CallStaticVoidMethod (IntPtr clazz, IntPtr methodID, UnityEngine.jvalue[] args) [0x00011] in /Users/builduser/buildslave/unity/build/Runtime/Export/AndroidJNISafe.cs:202
at UnityEngine.AndroidJavaObject._CallStatic (System.String methodName, System.Object[] args) [0x00038] in /Users/builduser/buildslave/unity/build/Runtime/Export/AndroidJavaImpl.cs:417
at UnityEngine.AndroidJavaObject.CallStatic (System.String methodName, System.Object[] args) [0x00004] in /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/AndroidJavaBindings.gen.cs:38
at EasyAR.ARBuilder.InitializeEasyAR (System.String key) [0x00019] in D:\U3dPrjs\AMG_FULL_Unity\samples\Hello-Video-Unity-Agora\Assets\EasyAR\Scripts\ARBuilder.cs:47
at EasyAR.EasyARBehaviour.Initialize () [0x00023] in D:\U3dPrjs\AMG_FULL_Unity\samples\Hello-Video-Unity-Agora\Assets\EasyAR\Scripts\EasyARBehaviour.cs:46
at EasyAR.EasyARBehaviour.Awake () [0x00002] in D:\U3dPrjs\AMG_FULL_Unity\samples\Hello-Video-Unity-Agora\Assets\EasyAR\Scripts\EasyARBehaviour.cs:21
(Filename: /Users/builduser/buildslave/unity/build/Runtime/Export/AndroidJNISafe.cs Line: 24)
手机信息如下:
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 76
model,name : Intel Atom(TM) X5-Z8350
stepping : 4
microcode : 0x404