Intellij Idea - Gradle: Execution failed for task ':compileJava'
Try this:
1) File -> Invalidate caches / Restart
2) Shutdown Intellij Idea
3) Remove .gradle folder in the user home directory
4) Restart Intellij Idea let it download all the Gradle stuff it needs
After this it should builds successfully
Hope it helps)
Try using a different version of gradle. It seems you are using an older version. Latest version is 3.5. Also you can check which version is used in the original version and use that one.
If none works, try the following
1. Close the IDE
2. Delete .gradle folder in home directory
3. Start the IDE. Let it refresh the gradle project and download necessary files