I was facing the same issue. For me, it got resolved by setting proxy settings.
Android Studio > File > Settings >appearance and behavior> System Settings > HTTP Proxy
I would suggest checking any proxy is required to enable internet for your android studio. Hope this will help somebody.