Android Studio遇到Failed to resolve: common问题

最近在学习Google todomvp项目,但是导入Android Studio时报错了

Failed to resolve: common


然后参考Stack Overflow上的一个答案

将Project的build.gradle文件中的google()挪到jcenter()上面一行就可以了

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

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

allprojects {
    repositories {
        google()
        jcenter()
    }
}


没有更多推荐了,返回首页