WindowsPlayer Error when building project


When I try to build my project to make it into a .exe I get this weird error: “Moving file failed: Moving Temp/StagingArea/WindowsPlayer.exe to Temp/StagingArea/Simulator v2.exe: System cannot find specified file.”

I used to be able to build my project just fine and all of a sudden I’m unable to build.
I’ve looked around and tried to change indexing settings, turning off firewall and running as administrator but all these didn’t work.

(Using Unity version 2017.2.0)

Anyone know the cause/how to fix??

I ended up uninstalling and re-installing Unity and that seemed to do the trick.