link below for blog:
https://sundaynotice.blogspot.com
Close android studio app then
Using ccleaner clear cache of pc.
Then in c drive go to user then [dot]gradle file, delete all files
open android studio again click on file then click on invalidate cache/restart
When android studio will restart it automatically start downloading gradle from source website.Below are setting for source of gradle online.
Other addtional options:
Change url in gradle.properties for downloading gradle. Get the required one from gradle official website.
In file setting build select gradle source to wrapped file i.e. gradle.properties
Re-download dependecies and sync project(requires network)
Gradle 'MyApplication' project refresh failed
failed to open zip file.
Gradle's dependecies cache may be corrupt(this sometimes occurs after a
network timeout.)
Re-download dependecies and sync project(requires network)
Gradle sync failed: No cached version of
com.android.tools.build:gradle...
available for offline mode
Thanks for watching.
Please Subscribe my Channel for more updates.