huangbj16 / PokemonGO-VR

a virtual reality Pokemon GO game on Android smartphone and Cardboard.
2 stars 0 forks source link

Fail to build the apk to run on mobile phone #10

Closed hsweif closed 4 years ago

hsweif commented 4 years ago

两个新增的场景在 build & run 时会报错,信息如下:

UnityEditor.BuildPlayerWindow+BuildMethodException: 28 errors
  at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00242] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:190 
  at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:95 
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:179)

参考了 StackOverflow 上的此链接,然而他们提到的解决方案似乎在我们这个版本的 Unity 找不到,仍在试图排除问题中。

hsweif commented 4 years ago

Problems solved after reinstalling another version from UnityHub...

huangbj16 commented 4 years ago

cool~