为了统一起见,我尝试运行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示例,它们工作得很好。有什么问题是不能统一的呢?
发布于 2018-06-25 15:48:17
我迁移回了Unity2018.x到2017.4.6f =>,现在它可以工作了
发布于 2020-01-20 09:35:33
消息很清楚,统一无法找到ARCore dll.
如果您使用的是统一装配定义 (这是一件值得考虑的好事),则需要验证是否正确引用了ARCore dll。
我通过在“主”.asmdef文件中引用ARCore文件夹中的.asmdef文件( dll文件所在)来解决这个问题。(在我的例子中,联合因一些奇怪的原因而失去了这份参考资料)
如果您没有使用程序集定义(这可能是一个很好的开始时间),那么重新检查项目中是否正确安装了ARCore,以及是否启用了“ARCore支持”,可能会很有趣。
编辑->项目设置(Android ) -> XR设置,并选中"ARCore支持“框(见屏幕快照)

https://stackoverflow.com/questions/50578439
复制相似问题