IntelliJ Gradle sync fail on project load/create. "Unable to start the daemon process."
After creating a normal gradle project with java, Intellij is not able to make the first sync of the gradle project.
I have tried many different Java JDKs. For Example 1.8, 9 and 11. It never worked and it always shows the same error:
This error appears on all my devices. All are running Windows 10 Home and I am also using the ToolBox application to keep every programm up to date.
I can create other projects without gradle without any problems for example Mavern.
I´ve tried a few things:
Like this post and this one(Android Studio) from another user and I have also read a lot about this topic on stackoverflow.
I litterly have no idea, what to do now. The error message isn't helpfull. I have read everything on this page (errormessage) and litterly tried everything I could find on this page.
I also looked into the log files from the idea:
This is the gradle daemon log file found in the .gradle/daemon/4.6 folder: daemon-11400.out.log
This is the idea log file: idea.log
It would be great, if someone has at least one idea, why it isn't working for me.
Please sign in to leave a comment.
Can you build project from command line by Gradle?
The daemon can not connect to a tcp port on the localhost. Make sure no antivirus/firewall is blocking the connections. Try with it disabled or make sure that IDE settings directories, IDE installation home and project files are excluded from the scan.
Also try creating project on a different location (not on OneDrive, like I see in log):
Try also this suggestions from Gradle: https://github.com/gradle/gradle/issues/7369#issuecomment-430177093
Thank you. After disabling the firewall it works.
Now I need to search, how I allow Gradle stuff in the firewall.
Thank you!