Flutter and gradle problem

Good evening,
I am a biggner using flutter and dart and trying to run application in course but i found the below respond, can anybody help:

Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...
Running Gradle task 'assembleDebug'...
You are applying Flutter's app_plugin_loader Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/go/flutter-gradle-plugin-apply

FAILURE: Build failed with an exception.

* Where:
Build file 'C:\Users\mhasa\StudioProjects\untitled2\android\app\build.gradle' line: 2

* What went wrong:
Plugin [id: 'com.android.application'] 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 (plugin dependency must include a version number for this source)

* 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

Error: Gradle task assembleDebug failed with exit code 1

The error is telling you, that you try to apply the plugin with ID com.android.application, without specification a version.

so can you please specify the solution if you know how…

I have no idea about Flutter and whether there is something special to it. But well, as I said, Gradle complains you didn’t specify a version, so probably specify a version?