Configuration with name 'compileClasspath' not found

夙愿已清 提交于 2019-12-03 11:17:06

Today I've solved the same problem! I've spent more than a week trying to find a solution. In short Lint-plugin for Gradle implicitly supposes that you have the following section

buildscript {
    repositories {
        jcenter()
        google()
    }

    dependencies {
        classpath "com.android.tools.build:gradle:$gradlePluginVersion"
    }
}

in your root-level build.gradle file. Just move that common section from your scripts right to the root-level script.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!