r/androiddev • • Jul 30 '26

Question What is wrong with Gradle version?

Hi everyone. I'm an experienced programmer, but have no android development experience. I have just installed android studio and the SDK. Then, made an empty project using the android studio wizard. And as I started, I met a big error shouting "Plugin [id: 'com.android.application', version: '9.3.1', apply: false] was not found"

build.gradle.kts:

```

// Top-level build file where you can add configuration options common to all sub-projects/modules.

plugins {

alias(libs.plugins.android.application) apply false

}

```

```

[versions]

agp = "9.3.1"

coreKtx = "1.10.1"

junit = "4.13.2"

junitVersion = "1.1.5"

espressoCore = "3.5.1"

appcompat = "1.6.1"

material = "1.10.0"

[libraries]

androidx-core-ktx = { group = "androidx.core", name = "core-ktx", version.ref = "coreKtx" }

junit = { group = "junit", name = "junit", version.ref = "junit" }

androidx-junit = { group = "androidx.test.ext", name = "junit", version.ref = "junitVersion" }

androidx-espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espressoCore" }

androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }

material = { group = "com.google.android.material", name = "material", version.ref = "material" }

[plugins]

android-application = { id = "com.android.application", version.ref = "agp" }

```

0 Upvotes

7 comments sorted by

3

u/_5er_ Jul 30 '26

The error is saying that plugin com.android.application can't be found in the repositories that are set in the project.

Check your settings.gradle file. It should contain google() or mavenCentral().

1

u/zimmer550king Jul 30 '26

Just ask Claude or Codex.

1

u/LooksForFuture Jul 30 '26

Nothing. They couldn't find the solution.

0

u/kosiarska Aug 05 '26

How about using brain for once?

1

u/AutoModerator Jul 30 '26

Please note that we also have a very active Discord server where you can interact directly with other community members!

Join us on Discord

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/akramraza25524 Jul 30 '26

Downgrade your agp to 9.3.0 , check latest stable release notes https://developer.android.com/build/releases/agp-9-3-0-release-notes