"Could not find com.android.tools.build:gradle:7.2.0." 与花栗鼠

"Could not find com.android.tools.build:gradle:7.2.0." with Chipmunk

我刚刚将 Android Studio 更新为 Chipmunk,gradle 文件同步不再有效。同步有以下错误:

Could not find com.android.tools.build:gradle:7.2.0.
Searched in the following locations:
  - https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/7.2.0/gradle-7.2.0.pom
  - https://repo.maven.apache.org/maven2/com/android/tools/build/gradle/7.2.0/gradle-7.2.0.pom
Required by:
    project :
Add google Maven repository and sync project
Open File

我点击了“添加 google Maven 存储库和同步项目”,但没有任何反应。我在 build.gradle 中有以下内容:

buildscript {
    ext.kotlin_version = '1.3.72'
    repositories {
        google()
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:7.2.0'


        classpath("com.google.android.gms:oss-licenses-plugin:0.10.5")

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

有人可以提供有关如何解决此问题的提示吗?

Android Studio Chipmunk | 2021.2.1
Build #AI-212.5712.43.2112.8512546, built on April 28, 2022
Runtime version: 11.0.12+7-b1504.28-7817840 amd64
VM: OpenJDK 64-Bit Server VM by Oracle Corporation
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 16
Registry: external.system.auto.import.disabled=true, debugger.watches.in.variables=false
Non-Bundled Plugins: org.intellij.plugins.markdown (212.5457.16), com.thoughtworks.gauge (212.4746.52), org.jetbrains.kotlin (212-1.6.21-release-334-AS5457.46), com.android.aas (3.5.1), com.intellij.marketplace (212.5712.51), com.google.mad-scorecard (1.2)

由于 that site 上没有列出此类版本,这可能是一个错误。请改用版本 7.1.3。

更新: 发布是在当天晚些时候发布的。现在它应该可以正常工作了。

AGP 7.2.0 刚刚在几分钟前发布,今天早些时候还没有发布。再试一次。