当前位置: 首页 > 知识库问答 >
问题:

找不到com.android.tools.build:Gradle:4.0.0

容寒
2023-03-14
distributionBase=GRADLE_USER_HOME

distributionPath=wrapper/dists

distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip

zipStoreBase=GRADLE_USER_HOME

zipStorePath=wrapper/dists
// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {

    repositories {

        google()

        jcenter()

    }

    dependencies {

        classpath "com.android.tools.build:gradle:4.0.0"

        // NOTE: Do not place your application dependencies here; they belong

        // in the individual module build.gradle files

    }

}

allprojects {

    repositories {

        google()

        jcenter()

    }

}

task clean(type: Delete) {

    delete rootProject.buildDir

}

找不到com.android.tools.build:Gradle:4.0.0.

https://jcenter.bintray.com/com/android/tools/build/gradle/4.0.0/gradle-4.0.0.pom

共有1个答案

亢奇
2023-03-14

在File->Invalidate cache/restart下无效缓存之后,我遇到了这个问题,删除了project文件夹下的node_modules,然后安装了一个npm。单击“文件”->Sync Project with Gradle Files解决了这个问题

 类似资料: