I need help regarding error in my settings.gradle file of a flutter project i want to run

FAILURE: Build failed with an exception.

* Where:
Settings file 'C:\Users\prabh\OneDrive\Desktop\FCP-CSC-18-1080-main\FudMentor\android\settings.gradle' line: 21

* What went wrong:
Plugin [id: 'com.android.application', version: '4.1.0', apply: false] was not found in any of the following sources:

- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Included Builds (None of the included builds contain this plugin)
- Plugin Repositories (could not resolve plugin artifact 'com.android.application:com.android.application.gradle.plugin:4.1.0')
  Searched in the following repositories:
    Gradle Central Plugin Repository

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.

* Get more help at https://help.gradle.org


Tried fixing this error using chat gpt but its not getting fixed.

Are you sure you want to use a 4 years old Android Gradle Plugin?

Sorry but I am a beginner, I dont know anything about android gradle plug in. I am just trying to run a project from github, link: GitHub - UGPROJECTS-2023/FCP-CSC-18-1080: Welcome to the Federal University Dutse (FUD) Mentor-Mentee App! This Flutter and Dart-powered application, with Sqflite and Firebase integration, is designed to connect students and staffs for seamless mentorship experiences. . After connecting it to firebase, I am receiving this error.

If so, Google failed to properly publish the plugin marker artifact that allows to resolve from plugin ID to code artifact before AGP 4.2.0.
So you would need to do the mapping manually using this in your settings script:

pluginManagement {
    resolutionStrategy {
        eachPlugin {
            when (requested.id.id) {
                "com.android.application" ->

I am just trying to run a project from github

Then you should probably ask that project’s maintainer for help.
Maybe it is not compatible with the Flutter SDK you are using or something like that.
No real idea about Flutter.