AGP 8.13 in Android Studio Narwhal 3 Feature Drop | 2025.1.3 does not work

Hello, I am trying to upgrade an app to AGP 8.13.0 and I constantly get this error:

org.gradle.api.plugins.UnknownPluginException: Plugin \[id: ‘com.android.application’, version: ‘8.13.0’, apply: false\] was not found in any of the following sources:

* Gradle Core Plugins (plugin is not in ‘org.gradle’ namespace)
* Included Builds (No included builds contain this plugin)
* Plugin Repositories (could not resolve plugin artifact ‘com.android.application:com.android.application.gradle.plugin:8.13.0’)
  Searched in the following repositories:
  Google
  MavenRepo
  Gradle Central Plugin Repository
  at org.gradle.plugin.use.resolve.internal.PluginResolutionResult.getFound(PluginResolutionResult.java:112)
  at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.resolvePluginRequest(DefaultPluginRequestApplicator.java:192)
  at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.applyPlugins(DefaultPluginRequestApplicator.java:97)
  at org.gradle.kotlin.dsl.provider.PluginRequestsHandler.handle(PluginRequestsHandler.kt:45)
  at org.gradle.kotlin.dsl.provider.StandardKotlinScriptEvaluator$InterpreterHost.applyPluginsTo(KotlinScriptEvaluator.kt:219)
  at org.gradle.kotlin.dsl.execution.Interpreter$ProgramHost.applyPluginsTo(Interpreter.kt:385)
  at Program.execute(Unknown Source)

build.gradle.kts:

plugins {
    id("com.android.application") version "8.13.0" apply false
    id("org.jetbrains.kotlin.android") version "1.8.10" apply false
    id("com.google.devtools.ksp") version "1.8.10-1.0.9" apply false
}

settings.gradle.kts

pluginManagement {
    repositories {
        google()
        mavenCentral()
        gradlePluginPortal()
    }
}
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
    }
}

Gradle-wrapper.properties:

distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

Using Android Studio Narwhal 3 Feature Drop | 2025.1.3 on MacOS Sequoia Apple Silicon

Any help would be appreciated.

As the plugin it searches is available in the repository it searches in, this is most likely either a problem that you tried too early (the version was released 2 days ago) and Gradle remembers that it was not found, so try with --refresh-dependencies.

If it then still does not work, then usually the cause is something on your network, like an AntiVirus or Firewall disturbing the download, or that you need to use a proxy to access the outworld but did not configure Gradle to use it, or something along those lines.

I am having the same problem. Waiting for help.

If it is really the exact same problem - which I cannot evaluate without you sharing any information - then all information you need is exactly one answer above yours. :wink: