无法解析com.android.tools.build:gradle:3.2.1-Flutter

时间:2019-12-01 04:26:16

标签: android gradle flutter

我正在尝试构建我的第一个Flutter应用程序,但是存在问题。这是“调试控制台”屏幕;

Launching lib\main.dart on AOSP on IA Emulator in debug mode...
* Error running Gradle:
ProcessException: Process "C:\Users\johnlocke\first_app\android\gradlew.bat" exited abnormally:

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not resolve com.android.tools.build:gradle:3.2.1.
     Required by:
         project :
      > Could not resolve com.android.tools.build:gradle:3.2.1.
         > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.2.1/gradle-3.2.1.pom'.
            > Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.2.1/gradle-3.2.1.pom'.
               > Connect to dl.google.com:443 [dl.google.com/209.85.229.99] failed: Connection timed out: connect

* Try:
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.

* Get more help at https://help.gradle.org

BUİLD FAILED in 1m 48s
  Command: C:\Users\johnlocke\first_app\android\gradlew.bat app:properties
Please review your Gradle project setup in the android/ folder.
Exited (sigterm)

另一方面,谷歌浏览器无法访问该网址; “ https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.2.1/gradle-3.2.1.pom

但是当我在Opera上使用VPN时,我可以访问链接。所以我认为问题与代理有关。

0 个答案:

没有答案