This problem arises when android studio is not able to access the gradle.zip file. The easiest way to resolve this is to follow what studio tells you to do, in this case it says to re-download the dependencies. Due to a very minor glitch this doesn't work.
In order to solve it:
- Go to gradle-wrapper.properties from the "project" side menu
- Then change:
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
to
distributionUrl=https://services.gradle.org/distributions/gradle-3.3-all.zip
After this studio should be able to download the correct zip file i.e. "gradle-3.3-all.zip"
If this does not help then you will have to make a few efforts.
- Download the zip file manually from gradle-3.3-all.zip
- Copy the zip file.
- Reach the directory wherever your ".gradle" folder exists(It's usually in "C:\Users\user.gradle", if you are on windows).
- Then navigate to "wrapper" and then to "gradle-3.3-all".
- Replace the zip file already there with the newly downloaded zip file.
"Replace being the keyword here."
Sync your project. It may take time to sync, but it will definitely sync.
It solved the problem for me. Cheers!!