FLUTTER ERROR: 1). RERUN THE APP WITH A STRONG INTERNET CONNECTION.
This method is the simplest because it involves just doing
flutter run with a strong internet connection. This is to help download the Gradle file in case it was not downloaded correctly.
So here is how to do it. Move to the folder app folder then do the following ENSURE YOU HAVE STRONG INTERNET CONNECTION
If it runs to completion then everything is now ok
FLUTTER ERROR: 2). DELETE, REDOWNLOAD AND EXTRACT THE GRADLE.ZIP FILE
Requirements if you are using Ubuntu
wget: to download the new
unzip: to unzip the downloaded Gradle file
You may find them already in your system
In this method, we are going to remove the Gradle file since it may be the one causing the flutter error.
This will all the problems I have tested it and It works perfectly