Unity 3D:在Android Studio上将Unity用作库时不渲染相机

时间:2018-08-25 08:57:00

标签: android unity3d mapbox

我已经通过导入AAR成功地将一个项目从unity导入了Android。但是我的相机供稿未呈现,该应用程序的其余部分正常运行。

我正在尝试将Mapbox AR Unity集成到我的Android应用中。该应用程序打开,但相机未打开。运行该应用程序时,我在Android Studio Logcat中收到此错误代码:

(Filename: C Line: 0)
08-23 14:42:48.575 15689-15721/? E/Unity: DllNotFoundException: arcore_unity_api
        at (wrapper managed-to-native) GoogleARCoreInternal.LifecycleManager/ExternApi:ArCoreUnity_setArPrestoInitialized (GoogleARCoreInternal.LifecycleManager/EarlyUpdateCallback)
      at GoogleARCoreInternal.LifecycleManager._Initialize () [0x00019] in C:\Users\Tarak\Documents\MapboxtoAndroid\Assets\GoogleARCore\SDK\Scripts\Managers\LifecycleManager.cs:223 
      at GoogleARCoreInternal.LifecycleManager..cctor () [0x00010] in C:\Users\Tarak\Documents\MapboxtoAndroid\Assets\GoogleARCore\SDK\Scripts\Managers\LifecycleManager.cs:58 
    Rethrow as TypeInitializationException: An exception was thrown by the type initializer for GoogleARCoreInternal.LifecycleManager
      at GoogleARCore.ARCoreSession.Awake () [0x00001] in C:\Users\Tarak\Documents\MapboxtoAndroid\Assets\GoogleARCore\SDK\Scripts\ARCoreSession.cs:42 

    (Filename: C Line: 0)
08-23 14:42:48.586 15689-15721/? I/Unity: has extra
    UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
    UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
    UnityEngine.Logger:Log(LogType, Object)
    UnityEngine.Debug:Log(Object)
    FromAndroid:Update() (at C:\Users\Tarak\Documents\MapboxtoAndroid\Assets\FromAndroid.cs:27)

这是我提出的Github问题链接,但Mapbox没有得到很好的答复。 https://github.com/mapbox/mapbox-unity-sdk/issues/977

0 个答案:

没有答案