Vague gradle "failed" error in new project following tutorial
Answered
I am trying to follow the tutorial here https://www.jetbrains.com/help/idea/getting-started-with-gradle.html#create_gradle_project, but I can't even get past the first part. After I create the project, I get a vague sync error which just says "failed", and my project directory does not have all of the files that the tutorial shows.

Please sign in to leave a comment.
Update: It worked at home, but not at work. This may have to do with not being able to download Gradle because at work they do a man-in-the-middle ssl certificate injection. Is there any way to tell intellij to use a custom SSL certificate when downloading Gradle? I tried to add it to Tools > Server Certificates, but that didn't fix the problem.
The error could be caused not only by the certificate. The same error occurs due to incompatibility between Gradle 4.4 and JDK 11. So, please check the exact error thrown by Gradle.
Clear idea.log and build.log files, execute build task and receive the error in IntelliJ IDEA interface. What has been logged inside both files?
Do you see something similar to
Thanks for the reply, Konstantin.
No build.log file gets created. Below is the relevant section of my idea.log file - definitely SSL related.
Importing certificates into IDEA JVM or running IDEA under your system JVM with imported certificates (https://intellij-support.jetbrains.com/hc/articles/206544879) should work.