我在 Unity 5.3.4 中安装了 Kudan 1.1.3。我已经 100% 准确地遵循了 Kudan 的“入门”指南中的场景设置。我点击“构建并运行”,一切看起来都不错,但是一旦在 Nexus 9 上启动,应用程序就会立即死掉。我用 ADB 生成了一个错误报告,这里的崩溃缩小到我认为相关的任何内容:
05-24 13:38:28.619 5751 5777 E Unity : [KudanAR] Graphics vendor: NVIDIA Corporation
05-24 13:38:28.619 5751 5777 E Unity :
05-24 13:38:28.619 5751 5777 E Unity : (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
05-24 13:38:28.619 5751 5777 E Unity :
05-24 13:38:28.620 5751 5777 E Unity : [KudanAR] Graphics version: OpenGL ES 3.1 NVIDIA 343.00
05-24 13:38:28.620 5751 5777 E Unity :
05-24 13:38:28.620 5751 5777 E Unity : (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)
05-24 13:38:28.620 5751 5777 E Unity :
05-24 13:38:28.667 617 794 D ConnectivityService: notifyType CAP_CHANGED for NetworkAgentInfo [WIFI () - 100]
05-24 13:38:28.719 5751 5777 D Kudan : KudanAR initialise called
05-24 13:38:28.721 5751 5777 D Kudan : CameraPreviewAndRender initialise called
05-24 13:38:28.722 5751 5777 D Kudan : OpenGL ES version is set to: 3
05-24 13:38:28.722 5751 5777 D Kudan : OpenGL ES Can use glBindArray: true
05-24 13:38:28.722 5751 5777 D Kudan : CameraPreviewAndRender loadShaders called
05-24 13:38:28.722 5751 5777 D Kudan : CameraPreviewAndRender CreateTexture called
05-24 13:38:28.723 5751 5777 D Kudan : CameraPreviewAndRender BindSinkTexture called
05-24 13:38:28.723 5751 5777 D Kudan : CameraPreviewAndRender CreateShaderProgram called
05-24 13:38:28.752 5751 5777 D Kudan : CameraPreviewAndRender SetupShaderProgram called
05-24 13:38:28.752 5751 5777 D Kudan : CameraPreviewAndRender CreateQuadGeometry called
05-24 13:38:28.752 5751 5777 D Kudan : StopTrackerThread called - bWaitForFinish: true
05-24 13:38:28.752 5751 5777 D Kudan : StartTrackerThread: creating thread TrackerThread1464111508
05-24 13:38:28.754 5751 5777 D Kudan : StartTrackerThread: Finished
05-24 13:38:28.767 5751 5777 I kudan-ndk: checking
05-24 13:38:28.782 5751 5751 F libc : Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid 5751 (eu.kudan.ar)
05-24 13:38:28.831 617 981 I WindowState: WIN DEATH: Window{a426155 u0 SurfaceView}
05-24 13:38:28.832 617 654 I chatty : uid=1000(system) InputDispatcher expire 2 lines
05-24 13:38:28.834 617 979 I WindowState: WIN DEATH: Window{4004c13 u0 eu.kudan.ar/com.unity3d.player.UnityPlayerActivity}
05-24 13:38:28.834 617 979 I chatty : uid=1000(system) Binder_7 expire 1 line
05-24 13:38:28.847 617 984 I ActivityManager: Process eu.kudan.ar (pid 5751) has died
在“kudan-ndk:检查”行之前,一切看起来都很好。我不是使用 Android 的专业人士,但我确实考虑了此教程页面底部的“陷阱”:https ://wiki.kudan.eu/Unity
我已经使用 Android SDK 管理器安装了 Android API 22,因为该级别被声明为目标级别。我还在 Unity 的播放器设置中强制屏幕方向为“横向”,我什至安装了 Android API 23,因为我的 Nexus 9 具有 Android 版本 6.0.1。也许最后一部分导致了问题……或者不是?任何人都可以分享对这个问题的更好理解吗?