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

Hello
I get the following error when running the project:

Launching lib\main.dart on DM B50104 in debug mode...
Running Gradle task 'assembleDebug'...

FAILURE: Build failed with an exception.

* Where:
Settings file 'C:\Users\Ali\StudioProjects\untitled\android\settings.gradle' line: 26

* What went wrong:
Plugin [id: 'com.android.application', version: '8.2.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:8.2.0')
  Searched in the following repositories:
    Google
    MavenRepo
    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 6s
Exception: Gradle task assembleDebug failed with exit code 1

settings.gradle =>

pluginManagement {
    def flutterSdkPath = {
        def properties = new Properties()
        file("local.properties").withInputStream { properties.load(it) }
        def flutterSdkPath = properties.getProperty("flutter.sdk")
        assert flutterSdkPath != null, "flutter.sdk not set in local.properties"
        return flutterSdkPath
    }
    settings.ext.flutterSdkPath = flutterSdkPath()

    includeBuild("${settings.ext.flutterSdkPath}/packages/flutter_tools/gradle")

    repositories {
        google()
        mavenCentral()
        gradlePluginPortal()
    }

    plugins {
        id "dev.flutter.flutter-gradle-plugin" version "1.0.0" apply false
    }
}

plugins {
    id "dev.flutter.flutter-plugin-loader" version "1.0.0"
    id "com.android.application" version "8.2.0" apply false
    id "com.android.library" version '8.2.0' apply false
}

include ":app"

As it said it searched in the “Google” repository and there the plugin is available, I suspect that it either is a temporary problem that works if you just retry, eventually using --refresh-dependencies, or that you have some other connection problem that should maybe be shown before the error or maybe with --info. Or maybe you have some Firewall or Anti-Virus disturbing or need to use some Proxy for internet access that you did not configure for Gradle.

–refresh-dependencies
And
–info
Where should I enter?

To the Gradle call.
As you probably use Flutter from what I see, I have no idea.

Many people use Flutter, but they don’t have any problems
I even used a VPN, changed the version of Gridel
But it didn’t help…Many people use Flutter, but they don’t have any problems
I even used a VPN, changed the version of Gradle
But it didn’t help…

Hi i have the same problem and i didn’t found any answear on the internet
& i live in Iran so i’m always limited in conections is there a way to fix it manualy ?