Problems In Downloading `Connection reset`

The problem is as following every time I ran flutter run I get build failed.
I get those errors that are provided in the next image:

and in text:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':path_provider_android:extractDebugAnnotations'.
> Could not resolve all files for configuration ':path_provider_android:detachedConfiguration1'.
   > Could not download intellij-core-30.3.0.jar (com.android.tools.external.com-intellij:intellij-core:30.3.0)
      > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/external/com-intellij/intellij-core/30.3.0/intellij-core-30.3.0.jar'.
         > Connection reset
   > Could not download kotlin-compiler-30.3.0.jar (com.android.tools.external.com-intellij:kotlin-compiler:30.3.0)
      > Could not get resource 'https://dl.google.com/dl/android/maven2/com/android/tools/external/com-intellij/kotlin-compiler/30.3.0/kotlin-compiler-30.3.0.jar'.
         > Connection reset

* 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 1m 30s
[!] Gradle threw an error while downloading artifacts from the network.
Exception: Gradle task assembleDebug failed with exit code 1
Exited (sigterm)

I live in a country “Not China” where network is very slow and I have to use VPN in order to connect.
I tried to download those packages manually and took me about 5 minutes to download successfully which it might be the problem maybe there is an option to set timeout in gradle for a longer period “might help” if any one knows how.
or if there is a way to download and setup those packages manually without letting gradle handle those downloads for me.
For Note:
Android Studio, SDK, Tools and AVD all downloaded them manually and it was clear and simple.
First run of flutter ran smoothly without any problem and now after a day of the first run I have those errors.
I hope I am as clear as possible and help can be provided easily.

Now after a lot of repeating I get a new error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:checkDebugDuplicateClasses'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Failed to transform arm64_v8a_debug-1.0.0-bd986c5ed20a62dc34b7718c50abc782beae4c33.jar (io.flutter:arm64_v8a_debug:1.0.0-bd986c5ed20a62dc34b7718c50abc782beae4c33) to match attributes {artifactType=enumerated-runtime-classes, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Could not download arm64_v8a_debug-1.0.0-bd986c5ed20a62dc34b7718c50abc782beae4c33.jar (io.flutter:arm64_v8a_debug:1.0.0-bd986c5ed20a62dc34b7718c50abc782beae4c33)
         > Could not get resource 'https://storage.googleapis.com/download.flutter.io/io/flutter/arm64_v8a_debug/1.0.0-bd986c5ed20a62dc34b7718c50abc782beae4c33/arm64_v8a_debug-1.0.0-bd986c5ed20a62dc34b7718c50abc782beae4c33.jar'.
            > Connection reset
   > Failed to transform x86_debug-1.0.0-bd986c5ed20a62dc34b7718c50abc782beae4c33.jar (io.flutter:x86_debug:1.0.0-bd986c5ed20a62dc34b7718c50abc782beae4c33) to match attributes {artifactType=enumerated-runtime-classes, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Could not download x86_debug-1.0.0-bd986c5ed20a62dc34b7718c50abc782beae4c33.jar (io.flutter:x86_debug:1.0.0-bd986c5ed20a62dc34b7718c50abc782beae4c33)
         > Could not get resource 'https://storage.googleapis.com/download.flutter.io/io/flutter/x86_debug/1.0.0-bd986c5ed20a62dc34b7718c50abc782beae4c33/x86_debug-1.0.0-bd986c5ed20a62dc34b7718c50abc782beae4c33.jar'.
            > Connection reset
   > Failed to transform x86_64_debug-1.0.0-bd986c5ed20a62dc34b7718c50abc782beae4c33.jar (io.flutter:x86_64_debug:1.0.0-bd986c5ed20a62dc34b7718c50abc782beae4c33) to match attributes {artifactType=enumerated-runtime-classes, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
      > Could not download x86_64_debug-1.0.0-bd986c5ed20a62dc34b7718c50abc782beae4c33.jar (io.flutter:x86_64_debug:1.0.0-bd986c5ed20a62dc34b7718c50abc782beae4c33)
         > Could not get resource 'https://storage.googleapis.com/download.flutter.io/io/flutter/x86_64_debug/1.0.0-bd986c5ed20a62dc34b7718c50abc782beae4c33/x86_64_debug-1.0.0-bd986c5ed20a62dc34b7718c50abc782beae4c33.jar'.
            > Connection reset

* 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 3m 8s
Running Gradle task 'assembleDebug'...                            189.6s
[!] Gradle threw an error while downloading artifacts from the network.
Exception: Gradle task assembleDebug failed with exit code 1

Guys I really need some help here if it’s available.