BuildPlayerWindowBuildMethods.cs:88

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)

how can i fix the error

Hi all
I had the same problem and my facebook sdk have some problems in the build and was giving me that error " Your Android setup is not correct. See Settings in Facebook menu. UnityEditor.HostView:OnGUI()"
and the problem has beed fixed when I fixed facebook sdk error so I think this error you asking about is because some unhandled exception so try to find what the error and solve it and the error will disappear

I’m having the same exact error, I have relocated the directory of the package, but the results are the same:

UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors 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)

Please help!
,I’m having the same exact error when trying to build and run and build. I have tried to relocate directory of the compiling scene, however, I have had the same results.