This issue affects PC's using Bitdefender Advanced Threat Defense and Gradle version greater than 8.5
The workaround involves
No other changes were necessary
This is all discussed on the Gradle issue tracker here.
One user suggests creating a separate version of Java, but since Android Studio ships with its own implementation it seems to be overkill (please correct me if that is incorrect)