Error when building project on a standalone

Hello,

I’ve just started with Unity and was doing one of the tutorials on the Unity website. I got to the last one where you build your project and when I try to build it with the standalone I get the following error:

Error building Player: IOException: Failed to Move File / Directory from ‘Temp/StagingArea/player_win.exe’ to ‘Temp/StagingArea/Roll.exe’.

I have looked all over the internet for similar errors and possible fixes but nothing what I have done has worked yet. I’ve tried making sure the project file is not read-only (which it is and seems unable to be changed), changing the save location of the build, and even changing the directory of Unity and running as administrator. The usual stuff. I’ve also tried with Anti-virus disabled.

Any ideas?

Thanks

I just started having this issue as well after updating to the latest release

I am on Windows 10 x64, and it seems that I am able to compile x64 but not x86…

Which release is that?

I have the same problem on Win 8.1 pro. I use Unity 5.1.3 f1. I tried to disable antivirus software (Avast), no success.

Unity 5.1.3f1. I also tried disabling my antivirus (Avast) but still no luck with x86 build

Same issue with Unity 5.1.3f1 on Windows 10, started today after I updated.

Works here, pls check if player_win.exe executable exists here - Editor\Data\PlaybackEngines\windowsstandalonesupport\Variations\win32_development_mono and win32_nondevelopment_mono

Also please attach Editor.log

I think that you found my issue; I have player_win.exe everywhere except for
C:\Program Files\Unity\Editor\Data\PlaybackEngines\windowsstandalonesupport\Variations\win32_nondevelopment_mono

I did an in place update to the latest version, and got no errors during that process. I can still attach my editor.log if you would like, but in the meantime I am going to try to reinstall Unity.

No need for Editor.log if the issue is clear, the question is why player_win.exe is missing there, did you use download assistant or installer ? At least 4 people are having this problem…

I used the download assistant for the initial update. I re-ran it and it seems to have replaced the file this second time.

As expected, I can confirm that after the updater replaced the file in that folder I am able to successfully build for x86 now.

Thanks for your prompt attention to the matter Tomas

Avast put the file in quaratine…

I just got the issue too. Worked fine on the same version. I’ll try reinstalling Unity.

Edit: While reinstalling, I was bored and looked around, and seems Avast locked player_win.exe for me, too.