【发布时间】:2022-01-12 12:34:35
【问题描述】:
你好,我的 gradle 版本是 7.3.3,我的 Flutter 版本是 2.8.1
这是我运行应用程序时的错误:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':path_provider_android'
> Could not resolve all artifacts for configuration ':path_provider_android:classpath'
> Could not find com.android.tools.build:gradle:3.3.0.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.3.0/gradle-3.3.0.pom
- https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/3.3.0/gradle-3.3.0.pom
【问题讨论】:
-
您是否尝试将版本升级到最新版本(7.0.4)?
-
无 gradle 版本:7.3.3
-
据我所知,AGP 的最新版本是 7.0.4,您可以在 Gradle 包装器属性的分发 URL 中指定 7.3.3。