AS(Android Studio)报错:Connection refused: connect

The new machine wins, debugs the iFlytek program of HKUST, and executes it after downloading.
Error:
Connection refused: connect
Connect to localhost:80 [localhost/127.0.0.1, localhost/0:0:0:0:0:0:0:1] failed: Connection refused: connect

Could not resolve com.android.tools.build:gradle:3.0.1.
Required by:
project :
Could not resolve com.android.tools.build:gradle:3.0.1.
Could not get resource ‘https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.0.1/gradle-3.0.1.pom’

1. Solution:
Log in to the official website: www.gradle.org
for details: Gradle download and installation tutorial

2. It was later found that the JDK was missing. After the installation and configuration, an error was still reported.

3. According to https://blog.csdn.net/XING979020/article/details/88372324, the
error is still reported.

Guess you like

Origin blog.csdn.net/weixin_47542175/article/details/113770039