Plugin [id: 'dev.flutter.flutter-gradle-plugin', version: '8.4'] was not found in any of the following sources:

I am getting an error something like this:-

Launching lib/main.dart on SM S901E in debug mode...
Running Gradle task 'assembleDebug'...

FAILURE: Build failed with an exception.

* Where:
Build file '/home/FakePickle/recpie_app_project/android/app/build.gradle' line: 4

* What went wrong:
Plugin [id: 'dev.flutter.flutter-gradle-plugin', version: '1.0.0'] was not found in any of the following sources:

- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)
- Plugin Repositories (could not resolve plugin artifact 'dev.flutter.flutter-gradle-plugin:dev.flutter.flutter-gradle-plugin.gradle.plugin:1.0.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.

BUILD FAILED in 1s
Running Gradle task 'assembleDebug'...                           1,636ms

This is the basic app which it automatically creates as soon as we make a generate a flutter app.
I am not able to figure out the perfect version which I am supposed to use.
Btw I am using arch linux I feel like that might be an issue over here.

If you need more in-depth help with that, you should probably ask in some Flutter community.

The plugin you try to resolve is not available in the plugin central which your build is solely searching for plugins.

If I look at a Flutter example project, it has in the settings script an includeBuild for a Gradle build in the Flutter SDK, so I guess that plugin should come from there.

is your error fixed? @FakePickle
I m facing the same issue right now. tried a lot since 3 days but didn’t find the solution
if you fixed this issue please guide