applications – Android Studio Gradle Connection refused: connect?

I installed Andorid Studio and the first time I started a new project.
at the time of compilation I had this error: "Connection refused: log in"

I tried to set a proxy and I also tried using local Gradle, but that did not help.

org.gradle.api.ProjectConfigurationException: There was a problem configuring the root project "MyApplication2".
[...]
Caused by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration $ ArtifactResolveException: Unable to resolve all artifacts in the configuration: classpath & # 39;
[...]
Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: unable to resolve com.android.tools.build:gradle:3.3.1.
Required by:
project:
[...]
Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: unable to resolve com.android.tools.build:gradle:3.3.1.
[...]
Caused by: org.gradle.api.resources.ResourceException: Unable to get the resource https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle /3.3.1/gradle- 3.3.1.pom & # 39;
[...]e
Caused by: org.gradle.internal.resource.transport.http.HttpRequestException: can not get GET https://dl.google.com/dl/android/maven2/com/android/tools/ build / gradle / 3.3.1 /gradle-3.3.1.pom & # 39 ;.
[...]
Caused by: org.apache.http.conn.HttpHostConnectException: connect to xx.xxx.xx.xx: 8080 [/xx.xxx.xx.xx] failed: connection refused: connect
[...]
Caused by: java.net.ConnectException: connection refused: connect
[...]