Сергей В
Сергей В

Reputation: 121

I can't build my Unity program due to errors

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.

Upvotes: 0

Views: 469

Answers (1)

DarkStoorM
DarkStoorM

Reputation: 26

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...

Upvotes: 1

Related Questions