0
I am getting the following error when trying to build for PC/Windows:
UnityEditor.BuildPlayerWindow+BuildMethodException: Error building Player because scripts have compile errors in the editor at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00234] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:190 at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:96 UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
I have googled this issue, and the answers I found were:
- Re-import all assets
- Remove the .sln files (Visual Studio solution files) from your project
- Change the build folder to outside the project
- Remove the Plugins folder from the Assets folder
I did 1-3 and the problem remains. #4 doesn't make since, because I have plugins which are required in that folder. The project is compiling and running inside Unity, but it just won't build.
My Unity version is 2018.3.4f1, if that helps...
Can you please advice? This is extremely frustrating and I am fighting this over 2 days now