Error of not finding path when creating a build

when I try to do a buil I get an error:

UnauthorizedAccessException: Access to “Library / BuildPlayerData \ Editor” path is denied.
System.IO.Directory.Delete

I already looked for the files and there is nothing in that folder
please help

Has anyone solved this? I’m experiencing it right now

The same issue, can’t find any solutions

I was able to solve this issue by deleting the Library folder on the project root.
This will delete a bunch of Unity settings but it should recreate them the next time you open Unity.

Yes it worked for me, thank you very much

I had solved it by making a new Unity Project entirely, but I just got the error again and this was a much less troublesome way of solving it. Thanks!