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,
In my case, it was a firewall issue. After adding Android Studio to its whitelist everything is working fine.