0

I can't build my Unity program. I click "Build and Run" and get error:

UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors

at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00242] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:194

at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:97 UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

Unity is installed on disk. And by path C:\buildslave\unity\build.... I don't have anything.

6
  • What happens if you do "Build" instead of "Build and Run"? Commented Jul 18, 2019 at 18:31
  • I get other error: UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00242] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:194 at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:97 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) Commented Jul 18, 2019 at 18:34
  • with: Build completed with a result of 'Failed' UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) Commented Jul 18, 2019 at 18:36
  • Possible duplicate of UnityEditor.BuildPlayerWindow+BuildMethodException? Commented Jul 18, 2019 at 18:41
  • no answer from "dublicate" helped Commented Jul 18, 2019 at 18:59

1 Answer 1

1

I have seen a lot of different answers, but in my case, when building to Standalone, it turned out I left the game running from the previous build and it was preventing the new build from creating an executable.

Same 2 errors [0x00242] and [0x0007f]. I just had to close the game...

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.