# Help with new build.gradle

**URL:** <https://discuss.gradle.org/t/help-with-new-build-gradle/51543>\
**Category:** Help/Discuss\
**Created:** [August 30, 2025, 9:39am UTC](https://discuss.gradle.org/t/help-with-new-build-gradle/51543 "2025-08-30T09:39:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GGN2007](https://avatars.discourse-cdn.com/v4/letter/g/87869e/32.png) [@GGN2007](https://discuss.gradle.org/u/GGN2007)\
**Post date:** [August 30, 2025, 9:39am UTC](https://discuss.gradle.org/t/help-with-new-build-gradle/51543/1 "2025-08-30T09:39:47Z")

</div>

I try to go from com.android.tools.build:gradle:8.8.2 to 8.12.2 . Gradle version is 9.0.0-rc-3

In my build.gradel, i’ve :

```gradle
 plugins {
        id 'com.android.application' version '8.12.2' apply false
        id 'com.android.library' version '8.12.2' apply false
        id 'org.jetbrains.kotlin.android' version '2.2.10' apply false
    }

dependencies {

        google()
        mavenCentral()
        mavenLocal()
        maven {
            url "https://maven.java.net/content/groups/public/"
        }
        maven { url "https://jitpack.io" }

        maven {
            url "https://repo.itextsupport.com/android"
        }
    }

application {
    mainClass = 'com.prod.gfer94'

```

I’ve an error:

```plaintext
Build file ‘D:\\Documents\\Applications District\\GFER94 Android\\build.gradle’ line: 5

Plugin \[id: ‘com.android.application’, version: ‘8.12.2’, 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.12.2’)
  Searched in the following repositories:
  Gradle Central Plugin Repository

* Try:

> Run with --info or --debug option to get more log output.
> Run with --scan to generate a Build Scan (Powered by Develocity).
> Get more help at https://help.gradle.org.

* Exception is:
  org.gradle.api.plugins.UnknownPluginException: Plugin \[id: ‘com.android.application’, version: ‘8.12.2’, 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.12.2’)
  Searched in the following repositories:
  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:197)
  at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.applyPlugins(DefaultPluginRequestApplicator.java:101)
  at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:123)
  at org.gradle.configuration.BuildOperationScriptPlugin$1.run(BuildOperationScriptPlugin.java:68)
  at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
  at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
  at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)

```

Can you help me

Thank you very much

---

<div class="post-metadata">

**Author:** ![Vampire](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/vampire/32/9082_2.png) [@Vampire](https://discuss.gradle.org/u/Vampire)\
**Post date:** [August 30, 2025, 5:35pm UTC](https://discuss.gradle.org/t/help-with-new-build-gradle/51543/2 "2025-08-30T17:35:15Z")

</div>

The error is quite clear, isn’t it?  
It tells you that you only have “Gradle Central Plugin Repository” as plugin repository and that does not contain the AGP.  
You need to add `google()` or any other repository that provides the AGP as plugin repository in your settings script.

---

<div class="post-metadata">

**Author:** ![GGN2007](https://avatars.discourse-cdn.com/v4/letter/g/87869e/32.png) [@GGN2007](https://discuss.gradle.org/u/GGN2007)\
**Post date:** [August 31, 2025, 7:21am UTC](https://discuss.gradle.org/t/help-with-new-build-gradle/51543/3 "2025-08-31T07:21:05Z")

</div>

Thank you very much so we can help, I followed your advice and now it’s correct
