'Why I get connection problems in a basic Flutter app?

I'm having a problem where I get an error, when I try to compile the basic code of one of the templates that my IDE provides.

Error is listed below:

Exception in thread "main" java.net.ConnectException: Connection timed out: connect
    at java.base/java.net.PlainSocketImpl.connect0(Native Method)
    at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:101)
    at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
    at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)

I've configured "No proxy" in settings, I have checked the firewall and I have checked the gradle properties and configure like a similar post response recommend but I get the same error.

What could be causing the error?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source