[英]showing this Gradle error when trying to run flutter project
I updated the Gradle from android studio.我从 android studio 更新了 Gradle。 and when I try to run the project in vs code (Yes I already changed inside the build Gradle file too) showing this error.
当我尝试在 vs 代码中运行项目时(是的,我也已经在构建 Gradle 文件中进行了更改)显示此错误。
What went wrong:
A problem occurred configuring root project 'android'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not find com.android.tools.build:gradle:7.4.1.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/7.4.1/gradle-7.4.1.pom
- https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/7.4.1/gradle-7.4.1.pom
Required by:
project :
how can I fix this?我怎样才能解决这个问题?
gradle 插件在项目级build.grade
和gradle-wrapper.properties
有不同的版本 这里是关于这个的官方文档
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.