Was able to build XR once, now I can't build anymore!

I’m trying to develop a Gear VR game (Android) on an iMac (late 2012, OS 10.13.5) using Unity.

I was able to successfully build a tutorial and load it on a Samsung Galaxy S8 ~ 25/06/2018. In my excitement, I think I updated something in Android Studio – now I can no longer build anything in Unity without getting these three errors:

“Error building Player because scripts have compile errors in the editor”

"Build completed with a result of ‘Failed’
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)"
"UnityEditor.BuildPlayerWindow+BuildMethodException: Error building Player because scripts have compile errors in the editor
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x0020e] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:181
at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00065] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:88
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)"

I originally built the tutorial using Unity 2018.1.5.f1. After reading many, many online posts, I’ve tried to use earlier versions of:

  • Unity 2017.4.3.f1
  • SDK tools 25.2.5
  • JDK jdk1.8.0_131

I’ve also edited the .bash_profile to make sure it points to the right locations. After spending three days downloading, installing, uninstalling… I’ve reached the end of ideas. I need help!

I don’t even know if I should be here or in the Android Studio forums. Any insight would be greatly appreciated. I’ve attached some screengrabs:


3558954--286632--Screen Shot 2018-07-09 at 10.39.14 PM.png

Here’s from the Unity error log:

*** Cancelled ‘Build.Player.AndroidPlayer’ in 1 seconds (808 ms)
Build completed with a result of ‘Failed’
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogError(Object)
UnityEditor.DefaultBuildMethods:BuildPlayer(BuildPlayerOptions) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:186)
UnityEditor.BuildPlayerWindow:CallBuildMethods(Boolean, BuildOptions) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:94)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun(Boolean) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindow.cs:180)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun() (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindow.cs:174)
(Filename: /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs Line: 186)
UnityEditor.BuildPlayerWindow+BuildMethodException: Error building Player because scripts have compile errors in the editor
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x0021f] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:187
at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x0007f] in /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:94
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[ ])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogError(Object)
UnityEditor.BuildPlayerWindow:CallBuildMethods(Boolean, BuildOptions) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs:99)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun(Boolean) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindow.cs:180)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun() (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindow.cs:174)
(Filename: /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPlayerWindowBuildMethods.cs Line: 99)

Please show a screenshot of your Player Settings where you select the VR settings.

3560795--286859--Screen Shot 2018-07-11 at 4.11.35 PM.png

Yes, that looks correct. Does a brand new/empty project build and deploy ok?