Failed to resolve: runtime

bug处理记录:

bug日志: Failed to resolve: runtime,还有其他的: Failed to resolve等等,
原因:project.gradle依赖出现问题,
解决:调整依赖库的排序
eg:我的项目中处理方式

buildscript {
    repositories {
        maven { url "https://maven.google.com" }
        jcenter()
        google()

    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.1.2'

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

allprojects {
    repositories {
        maven { url 'https://maven.google.com/' }
        jcenter()
    }
}

你可能感兴趣的:(Android知识点)