Uh, not by any Gradle code that’s in it, that looks like a filesystem issue, like you don’t have it on Windows or in a Dropbox managed folder or something I hope? Build systems of most languages don’t handle such filesystem management things well (that’s the purpose of git).
At the very least wipe your build directory because it is now corrupted. Also if possible please paste a full tree of your project to pastebin or so.