【问题标题】:A problem occurred configuring project ':uni_links'配置项目 \':uni_links\' 时出现问题
【发布时间】:2022-12-17 11:22:58
【问题描述】:

我想在我的 Flutter 项目中使用 uni_links 包,但是当我运行它时出现以下错误。

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':uni_links'.
> Could not resolve all files for configuration ':uni_links:classpath'.
   > Could not resolve com.android.tools.build:gradle:3.5.3.
     Required by:
         project :uni_links
      > Could not resolve com.android.tools.build:gradle:3.5.3.
         > Could not get resource 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.5.3/gradle-3.5.3.pom'.
            > Could not GET 'https://jcenter.bintray.com/com/android/tools/build/gradle/3.5.3/gradle-3.5.3.pom'. Received status code 403 from server: Forbidden
> Failed to notify project evaluation listener.
2
   > Could not get unknown property 'android' for project ':uni_links' of type org.gradle.api.Project.

谁能帮我这个?

【问题讨论】:

    标签: flutter gradle


    【解决方案1】:

    要解决此问题,请检查您的项目级别 build.gradle 文件中是否有 google() 存储库。

    buildscript {
        repositories {
            jcenter()
            google() //HAVE YOU MISS IT?
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:3.5.3'
        }
    }
    
    allprojects {
        repositories {
            jcenter()
            google() //HAVE YOU MISS IT?
        }
    }
    

    【讨论】:

      猜你喜欢
      • 2020-11-23
      • 1970-01-01
      • 2021-04-09
      • 2021-10-26
      • 2020-10-17
      • 2020-08-24
      • 2021-05-15
      • 2020-08-23
      • 2021-01-09
      相关资源
      最近更新 更多