This problem appears when you install the Android Studio environment with the Flutter framework
You can deal with it through the following:
Go to: hange distributionUrl parameter gradle-wrapper.properties file to a newer gradle version in file: "/android/gradle/wrapper/gradle-wrapper.properties"
And: distributionUrl=https:
For example: distributionUrl=https://services.gradle.org/distributions/gradle-4.10.1-all.zip
Note: These steps differ from one Android version to another