close

[Solved] Can’t create new Kotlin project after updating to Android Studio 4.2

Hello Guys, How are you all? Hope You all Are Fine. I cant Create Project in Android Studio After Updating Android Studio. So Here I am Explain to you all the possible solutions here.

Without Wasting your time, Lets start This Article to Solve This Error.

Why I Can’t create new Kotlin project after updating to Android Studio 4.2 ?

I cant Create Project in Android Studio After Updating Android Studio.

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/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

How To Solve Can’t create a new Kotlin project after updating to Android Studio 4.2 ?

Question: How To Solve Can’t create a new Kotlin project after updating to Android Studio 4.2 ?
Answer: Error is Pretty simple. Problem is that Gradle was unable to find the library that you declared. To Fix This Error Just Find Project -> build.gradle and update Below Line.

Question: How to solve Could not resolve all artifacts for configuration ‘:classpath’ ?
Answer: Error is Pretty simple. Problem is that Gradle was unable to find the library that you declared. To Fix This Error Just Find Project -> build.gradle and update Below Line.

Question: How to Solve Could not find org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0-release-764 ?
Answer: Error is Pretty simple. Problem is that Gradle was unable to find the library that you declared. To Fix This Error Just Find Project -> build.gradle and update Below Line.

Solution 1 : Update Gradle

Error is Pretty simple. Problem is that Gradle was unable to find the library that you declared. To Fix This Error Just Find Project -> build.gradle and update Below Line.

dependencies {
  classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.30"
}

Solution 2 : Update Version

Also Kotlin Version might be an issue. So I Simply Release from kotlin extensioln version. Just Like Below.

Before

buildscript {
    ext.kotlin_version = "1.5.0-release-764"
    repositories {
        google()
        mavenCentral()
    }

After

buildscript {
    ext.kotlin_version = "1.5.0"
    repositories {
        google()
        mavenCentral()
    }

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also Read: SyntaxError: invalid syntax to repo init in the AOSP code

Please Rate Our Solution to Motivate Us For Give Our Best

2 thoughts on “[Solved] Can’t create new Kotlin project after updating to Android Studio 4.2”

Leave a Comment