【发布时间】:2018-05-29 07:15:55
【问题描述】:
我尝试运行 arcore 示例以实现统一,如下页所述:https://developers.google.com/ar/develop/unity/quickstart-android
但它不起作用。该应用程序启动并正在搜索飞机,但摄像头输入为黑色。在logcat中有如下异常:
DllNotFoundException: arcore_unity_api
at (wrapper managed-to-native) GoogleARCoreInternal.ARPrestoCallbackManager/ExternApi:ArCoreUnity_setArPrestoInitialized (GoogleARCoreInternal.ARPrestoCallbackManager/EarlyUpdateCallback)
at GoogleARCoreInternal.ARPrestoCallbackManager.InitializeIfNeeded () [0x00000] in <filename unknown>:0
at GoogleARCoreInternal.ARCoreAndroidLifecycleManager.CreateSession (GoogleARCore.ARCoreSession sessionComponent) [0x00000] in <filename unknown>:0
at GoogleARCore.ARCoreSession.Start () [0x00000] in <filename unknown>:0
我还尝试了简单的 android 示例,效果很好。什么可能是它不适用于统一的问题?
【问题讨论】:
-
我遇到了同样的问题,Building on Unity 工作,但是导出项目,生成 AAR 并在新项目中导入该 AAR 并使用 UnityPlayerActivity 不显示相机图像,但显示按钮和添加的snackBar统一画布。在 LogCat 上遇到同样的错误。你解决了吗?
标签: arcore