I have no idea what I changed in my project, but it suddenly cannot get past this step while building gradle scripts.
There is no problem building it with j
If you are using a proxy server then you might have to set the JVM parameters for your proxy.
Settings -> Gradle -> Gradle VM options: -Dhttp.proxyHost=1.2.3.4 -Dhttp.proxyPort=8080 Settings -> Compiler -> VM options: -Dhttp.proxyHost=1.2.3.4 -Dhttp.proxyPort=8080
I had to restart the IDE for these settings to take effect.