Gradle build stuck on configuring for 14 hours

I tried these solutions but to no avail:

I also tried upgrading my Java version from Java 8 to Java 11. Same result.