Skip to content Skip to sidebar Skip to footer

Configuration With Name 'compileclasspath' Not Found

When I migrate to com.android.tools.build:gradle:3.0.0-beta3 and Gradle 4.1, I am seeing the following error: Caused by: org.gradle.api.artifacts.UnknownConfigurationException: Co

Solution 1:

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.

Solution 2:

Just add the compileClasspath as a configuration name to your build.gradle

configurations {
    compileClasspath
}
buildscript {
    repositories {
        ...
    }
    dependencies {
        ...
    }
}

Post a Comment for "Configuration With Name 'compileclasspath' Not Found"