Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Plugin [id: 'org.jetbrains.kotlin.android', version: '1.9.0', apply: false] was not found in any of the following sources:

Tags:

android

I just installing android studio with the latest update, but gradle sync failed.

` Plugin [id: 'org.jetbrains.kotlin.android', version: '1.9.0', apply: false] was not found in any of the following sources:

  • Exception is: org.gradle.api.plugins.UnknownPluginException: Plugin [id: 'org.jetbrains.kotlin.android', version: '1.9.0', apply: false] was not found in any of the following sources:
  • Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
  • Plugin Repositories (could not resolve plugin artifact 'org.jetbrains.kotlin.android:org.jetbrains.kotlin.android.gradle.plugin:1.9.0') Searched in the following repositories: Google MavenRepo Gradle Central Plugin Repository at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.resolveToFoundResult(DefaultPluginRequestApplicator.java:237) at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.lambda$resolvePluginRequests$3(DefaultPluginRequestApplicator.java:167)

attached screencapture for reference here : build.gradle + setting.gradle

like image 886
kosmas Avatar asked Oct 27 '25 08:10

kosmas


1 Answers

The Compose plugin is likely not available for Kotlin version 1.9.0. The Compose plugin is available from Kotlin version 2.0.0 onwards.

Solution: Update the Kotlin version to 2.0.0 or higher in the build.gradle.kts file and make sure that the Compose plugin version matches the Kotlin version.

I just faced the same issue. This is what helped me solve the problem.

like image 52
szikidani Avatar answered Oct 29 '25 05:10

szikidani