我尝试按照以下教程在Lenovo Tango设备上构建Tango示例项目:
https://developers.google.com/tango/apis/unity/unity-setup
https://developers.google.com/tango/apis/unity/unity-howto-motion-tracking
当我尝试构建时,应用程序是在设备上构建的,但是当我尝试打开它时它会崩溃。在Unity控制台中,抛出了以下两个异常:
ExitGUIException: Exception of type 'UnityEngine.ExitGUIException' was thrown.
UnityEngine.GUIUtility.ExitGUI () (at /Users/builduser/buildslave/unity/build/Runtime/IMGUI/Managed/GUIUtility.cs:163)
UnityEditor.Android.AndroidSdkRoot.Browse (System.String sdkPath)
UnityEditor.Android.AndroidSDKTools.GetInstance ()
UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSdk.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessAndroidPlayer.PrepareForBuild (BuildOptions options, BuildTarget target)
UnityEditor.Android.AndroidBuildPostprocessor.PrepareForBuild (BuildOptions options, BuildTarget target)
UnityEditor.PostprocessBuildPlayer.PrepareForBuild (BuildOptions options, BuildTargetGroup targetGroup, BuildTarget target) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:87)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()
和此:
UnityEditor.BuildPlayerWindow+BuildMethodException: Build failed with errors.
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x001b9] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:162
at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00050] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:83
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()
我已经按照上面教程中的所有步骤,下载了所有必需的库和SDK。有人知道它可能吗?
我的Unity版本是2017.10f3 Personal。 Android SDK 17和联想Tango PB2-690Y与Android版本6.0.1
我感谢任何帮助。提前致谢
答案 0 :(得分:0)
Tango的Unity SDK仅适用于Unity版本5.2 - 5.6。它不支持2017.1或更高版本。