IntelliJ Gradle sync fail on project load/create. "Unable to start the daemon process."

Answered

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.

0
3 comments

Can you build project from command line by Gradle? 

17:26:13.263 [ERROR] [system.err] java.net.SocketException: Permission denied: listen
17:26:13.263 [ERROR] [system.err]
17:26:13.263 [ERROR] [system.err] * Try:
17:26:13.264 [ERROR] [system.err] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
17:26:13.265 [ERROR] [system.err]
17:26:13.266 [ERROR] [system.err] * Get more help at https://help.gradle.org

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): 

External project [D:/OneDrive/Studium/Inhaltliches/Informatik/Programmierung 1/Übung/01_18.10.2018/B1_A3_IntelliJHelloWorld_aufgabe/IntelliJHelloWorld] resolution task executed in 24169 ms.
0
Avatar
Permanently deleted user

Thank you. After disabling the firewall it works.

Now I need to search, how I allow Gradle stuff in the firewall.

 

Thank you!

0

Please sign in to leave a comment.