Android Studio:Could not resolve all artifacts for configuration ':classpath'

Solution 1:

try this :

ext.kotlin_version = "1.5.0"
repositories {
    google()
    mavenCentral()
}
dependencies {
    classpath "com.android.tools.build:gradle:4.2.0"
    classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

it looks like there is some problems in server side just change kotlin version to 1.5.0 instead of 1.5.0-release-764