user8094814
user8094814

Reputation: 1

Gradle build failed with Gradle plug-in 7.1.1

I'm using Android studio. All new project showing this error:

Build file '/Users/messan/AndroidStudioProjects/MyApplication/build.gradle' line: 3

Plugin [id: 'com.android.application', version: '7.1.1', apply: false] was not found in any of the following sources:

Upvotes: 0

Views: 3285

Answers (1)

Lars
Lars

Reputation: 1

I have the exact same problem. Files:

Build.gradle:

// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
    id 'com.android.application' version '7.1.1' apply false
    id 'com.android.library' version '7.1.1' apply false
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

settings.gradle

pluginManagement {
    repositories {
        gradlePluginPortal()
        google()
        mavenCentral()
    }
}
dependencyResolutionManagement {
    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
    repositories {
        google()
        mavenCentral()
    }
}
rootProject.name = "KospetWatchApp"
include ':app'

I have not altered anything in the project after creating a blank new project from Android Studio

Upvotes: 0

Related Questions