Tango Unity 应用程序示例在构建到 Android 设备时抛出 "Unfortunately, (app name) has stopped"
Tango Unity Application example throws "Unfortunately, (app name) has stopped" when is built to Android device
我尝试按照下面的这些教程在 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 和 Lenovo Tango PB2-690Y Android 版本 6.0.1
感谢任何帮助。提前致谢
Tango 的 Unity SDK 仅适用于 Unity 版本 5.2 - 5.6。不支持2017.1及以上版本
我尝试按照下面的这些教程在 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 和 Lenovo Tango PB2-690Y Android 版本 6.0.1
感谢任何帮助。提前致谢
Tango 的 Unity SDK 仅适用于 Unity 版本 5.2 - 5.6。不支持2017.1及以上版本