0 votes
by (8.2k points)

1 Answer

0 votes
by (8.2k points)
edited by
 
Best answer

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 and Temp folders

  • Open Unity

Afterwards, If you ran into an access denied error, restart your PC.

unity3d - Unity Build Error `DirectoryNotFoundException` - Stack Overflow

TechXR runs courses in AR / VR / Metaverse / Game Development. Some of the popular Q&A in our courses are available here for easy discovery.

113 questions

117 answers

8 comments

99.7k users

...