At office, I am behind a proxy. The internet access is restricted.
So I performed a gradle sync at home and copied the folder \".gradle\" present at C:\\Users\\user
This Error occurs when in your Android Studio's Gradle Tools Offline Mode option is Enabled.
When Enabled it lookes like this.
To fix it, you can Disable mode by clicking on the option shown in below screenshot.