unity3d demo x86架构手机黑屏失败

0 投票
最新提问 3月 12, 2018 用户: pjl110 (120 分)
修改于 3月 12, 2018 用户:pjl110
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

1个回答

0 投票
最新回答 3月 12, 2018 用户: albert52 (37,780 分)

首先是EasyAR SDK支持的CPU架构:

发表于 3月 12, 2018 用户: pjl110 (120 分)
我打印了一下那个手机的cpu信息,您帮忙看看是否支持?谢谢
发表于 3月 12, 2018 用户: pjl110 (120 分)
processor    : 0

vendor_id    : GenuineIntel

cpu family   : 6

model         : 76

model,name : Intel Atom(TM) X5-Z8350

stepping      : 4

microcode    : 0x404
发表于 3月 16, 2018 用户: albert52 (37,780 分)
你的是x86结构啊,图片很详细啊,EasyAR 支持的android cpu结构是armv7a,arm64-v8a
欢迎来到 EasyAR Q&A ,有什么不懂的可以尽管在这里提问,你将会收到社区其他成员的回答。
...