Y
Y
Yera1112021-05-08 16:31:09
gradle
Yera111, 2021-05-08 16:31:09

> Could not resolve all artifacts for configuration ':classpath'?

Good Day just downloaded the AC
when creating projects, it gives an error
A problem occurred configuring root project 'My Application'.
> 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...
- https://repo.maven.apache.org/maven2/org/jetbrains...
Required by:
project :

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

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Roo, 2021-05-08
@xez

It's strange, of course, but it's really not there ...
Try adding the repository https://repo1.maven.org/maven2/
It will look something like this:
build.gradle.kts

repositories {
    mavenCentral()
    google()
    maven {
        url = uri("https://repo1.maven.org/maven2/")
    }
}

or
build.gradle
repositories {
    mavenCentral()
    google()
    maven {
        url "https://repo1.maven.org/maven2/"
    }
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question