I have the latest Android Studio IDE installed on my Windows 10 laptop, and it was working fine until my windows operating system made a huge automatic update.
Now,
I got around this issue by turning on Offline Mode in the Gradle tool window.