I am getting this error while building the project.

Had the same error. What I did was to delete everything inside the Temp folder (but not the Temp folder itself) and was able to successfully build my project. Hope this method works for you too.