Error building Player because scripts have compile errors in the editor - can't build to android

Hello all,
I’m using Unity 2017.3.1f1 and trying to build my app to android. I’ve been getting this error for the past several days I’ve tried to build the app -

UnityEditor.BuildPlayerWindow+BuildMethodException: Error building Player because scripts have compile errors in the editor
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x0020e] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:181
at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00065] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:88
UnityEngine.GUIUtility;ProcessEvent(Int32, IntPtr)

NOTE: the semicolon in the line above between Utility and Process is supposed to be a colon, but it automatically gets changed into this face if I leave it a colon :stuck_out_tongue:

I’ve looked up other forums about this issue and some suggest trying to find the scripts that have using UnityEditor in them and removing it, but I’ve tried that and removed them but it still isn’t working. I desperately need help.

Are you indeed receiving compiler errors? (not the build errors you posted) Please show a screenshot of your Console output. Does the game run in the Editor?