7

what is causing this build error:


- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'com.android.application:com.android.application.gradle.plugin:7.0.3')
  Searched in the following repositories:
    Gradle Central Plugin Repository
    Google

in build.gradle file

Expecting a successful android build

seremempire
  • 79
  • 1
  • 1
  • 2
  • Does this answer your question? [Error:(1, 0) Plugin with id 'com.android.application' not found](https://stackoverflow.com/questions/24795079/error1-0-plugin-with-id-com-android-application-not-found) – aSemy Oct 30 '22 at 14:36
  • You haven't provided any information, apart from the error. https://stackoverflow.com/help/how-to-ask From searching it seems like there are a lot of related posts - what have you tried? Do any of these help? https://stackoverflow.com/q/71780967/ https://stackoverflow.com/q/70947176/ https://stackoverflow.com/q/71427323/ https://stackoverflow.com/q/24795079/ – aSemy Oct 30 '22 at 14:37
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Oct 31 '22 at 06:44

1 Answers1

3

In my case settings.gradle file was missing. You can create a file and place into project root folder.

settings.gradle:

pluginManagement {
    repositories {
        gradlePluginPortal()
        google()
        mavenCentral()
    }
}
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
    }
}
rootProject.name = "android-geocode"
include ':app'
Rumit Patel
  • 8,830
  • 18
  • 51
  • 70
  • Happened with me when I migrated my legacy project to ```kotlin-dsl```. ```settings.gradle``` should be extended with ```pluginManagement``` and ```dependencyResolutionManagement``` blocks. – Gleichmut Jul 14 '23 at 15:24