打开项目报错:If the artifact you are trying to retrieve can be found in the repository but without metadat

If the artifact you are trying to retrieve can be found in the repository but without metadata in 'M

更换gradle和gradle插件后,编译报错,在项目的gradle增加仓库

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

buildscript {
    repositories {
        jcenter()
        google()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:4.0.2'

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

allprojects {
    repositories {
        maven { url "https://jitpack.io" }
        google()
        jcenter()
        maven{ url'https://maven.aliyun.com/repository/public/'}
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

你可能感兴趣的:(gradle,maven,java)