Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
Asked Answered
W

5

10

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

Wobble answered 30/10, 2022 at 14:31 Comment(3)
Does this answer your question? Error:(1, 0) Plugin with id 'com.android.application' not foundMattingly
You haven't provided any information, apart from the error. 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://mcmap.net/q/493996/-android-gradle-plugin-7-1-3-plugin-id-39-com-android-application-39-version-39-7-1-3-39-apply-false-was-not-found-in-any-of-the-following-sources-closed https://mcmap.net/q/264250/-bumblebee-android-studio-plugin-id-39-com-android-application-39-version-39-7-1-0-39-apply-false-was-not-found-in-any-of-the-following-sources https://mcmap.net/q/1003956/-gradle-sync-failed-plugin-id-39-com-android-application-39-version-39-7-1-2-39-apply-false-was-not-found-in-any-of-the-following-sources https://mcmap.net/q/75559/-error-1-0-plugin-with-id-39-com-android-application-39-not-foundMattingly
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.Koralie
E
13

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'
Elixir answered 20/11, 2022 at 11:25 Comment(2)
Happened with me when I migrated my legacy project to kotlin-dsl. settings.gradle should be extended with pluginManagement and dependencyResolutionManagement blocks.Daubery
that was the solution, it should be marked as answerMacdermot
R
0

Check the gradle-wrapper properties version of distributionurl and it should be same as build.gradle's plugin version

Raposa answered 4/9, 2023 at 8:21 Comment(1)
Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.Koralie
G
0

As I found, it's happened when the Gradle is updated, but it does not match with plugins. So for this issue, first check these steps:

  1. Project Setting: Project -> Gradle Version -> 8.0
  2. Gradle Wrapper: distributionUrl=https://services.gradle.org/distributions/gradle-8.0-bin.zip
  3. Inactive all plugins: and Sync Gradle to sure the last Gradle version is downloaded correctly.

If until this step is not solved, please see this link.

Goldenseal answered 1/1 at 7:18 Comment(0)
R
0

Did you try to add gradlePluginPortal() to your repositories? This worked for me

Remains answered 5/2 at 19:38 Comment(0)
K
0

Add rootProject.buildFileName = 'build.gradle.kts' above rootProject.name line or include ':app' line as shown below:

rootProject.buildFileName = 'build.gradle.kts'  // add this line in proper format
rootProject.name = 'employee-management'
...
Kono answered 26/7 at 10:36 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.