美文网首页
Error:Could not resolve all depe

Error:Could not resolve all depe

作者: Dazzzzzzzzzzzz | 来源:发表于2021-10-25 14:08 被阅读0次

    在项目的build.gradle 的buildscript 和 allprojects同时加上了 mavenCentral() google() 即可

    // Top-level build file where you can add configuration options common to all sub-projects/modules.
     
    buildscript {
        repositories {
            google()
            jcenter()
            mavenCentral()
            maven { url "https://jitpack.io" }
            
        }
        dependencies {
            classpath 'com.android.tools.build:gradle:3.3.2'
            
            // NOTE: Do not place your application dependencies here; they belong
            // in the individual module build.gradle files
        }
    }
     
    allprojects {
        repositories {
            google()
            jcenter()
            mavenCentral()
            maven { url "https://jitpack.io" }
        }
    }
     
    task clean(type: Delete) {
        delete rootProject.buildDir
    }
    

    相关文章

      网友评论

          本文标题:Error:Could not resolve all depe

          本文链接:https://www.haomeiwen.com/subject/ctgjaltx.html