Unity Build Error `DirectoryNotFoundException`
According to the error message, it looks like Unity's build pipeline is trying to create a temporary file with a random name inside a folder which does not exist.
It is most probable that some information is being cached in build.gradle
or other parts of the project.
Close Unity
Delete
Library
andTemp
foldersOpen Unity
Afterwards, If you ran into an access denied error, restart your PC.