user15820896
user15820896

Reputation:

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

I created a new project in Android Studio and an error pops up:

A problem occurred configuring root project 'About Me'.
> Could not resolve all artifacts for configuration ':classpath'.
   > Could not find org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0-release-764.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.5.0-release-764/kotlin-gradle-plugin-1.5.0-release-764.pom
       - https://repo.maven.apache.org/maven2/org/jetbrains/kotlin/kotlin-gradle-plugin/1.5.0-release-764/kotlin-gradle-plugin-1.5.0-release-764.pom
     Required by:
         project :

Possible solution:
 - Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html

enter image description here

Upvotes: 5

Views: 26052

Answers (3)

Surajkaran Meghwanshi
Surajkaran Meghwanshi

Reputation: 686

try this one :-

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

hope this will your answer visit this answer https://stackoverflow.com/a/75005827/12748481

Upvotes: 0

samin
samin

Reputation: 532

I just closed the project and restarted it, error gone

Upvotes: -3

Bobrekci
Bobrekci

Reputation: 80

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

Upvotes: 5

Related Questions