Reputation: 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:
Try: Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Exception is: org.gradle.api.plugins.UnknownPluginException: Plugin [id: 'com.android.application', version: '7.1.1', apply: false] was not found in any of the following sources:
Upvotes: 0
Views: 3285
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