Error building Player because scripts had compiler errors (Unity 2018 BETA)

Hello Friend… Anyone can help me, How to fix it.

UnityEditor.BuildPlayerWindow+BuildMethodException: Error building Player because scripts had compiler errors
at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x0021f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:182
at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00065] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:89

Whenever you get this, try looking in the editor log (its location can be found by googling) to see what the error actually was. Usually it is because you included some editor-only things in scripts that get compiled for builds, and you need to find out what they are and where so that you can put #if UNITY_EDITOR around them.