Your Android SDK is missing, out of date or corrupted SDK Problem


I recently ran into the Android Studio SDK Problem "Your Android SDK is missing, out of date or corrupted" while starting my newly installed Android Studio 4.0. When I clicked on "Open SDK Manager" it opened the prompt on installed packages but didn't let me select anything. So I had to restart my Android Studio and it took me back to the "Android Studio Setup Wizard" and eventually had to install all the required packages like the below

Android Emulator
235 MB
Android SDK Build-Tools 29.0.3
52.6 MB
Android SDK Platform 29
74.6 MB
Android SDK Tools
149 MB
Intel x86 Emulator Accelerator (HAXM installer)
2.63 MB
SDK Patch Applier v4
1.74 MB
Sources for Android 29
37.6 MB
Preparing "Install Android SDK Platform-Tools (revision: 30.0.1)".
Downloading https://dl.google.com/android/repository/platform-tools_r30.0.1-windows.zip
"Install Android SDK Platform-Tools (revision: 30.0.1)" ready.
Installing Android SDK Platform-Tools in C:\Users\c2c\AppData\Local\Android\Sdk\platform-tools
"Install Android SDK Platform-Tools (revision: 30.0.1)" complete.
"Install Android SDK Platform-Tools (revision: 30.0.1)" finished.
Preparing "Install Intel x86 Emulator Accelerator (HAXM installer) (revision: 7.5.6)".
Downloading https://dl.google.com/android/repository/extras/intel/haxm-windows_v7_5_6.zip
java.net.NoRouteToHostException: No route to host: connect
Warning: An error occurred while preparing SDK package Intel x86 Emulator Accelerator (HAXM installer): 
No route to host: connect.

Solution: It seems like while I was installing the Android Studio afresh I had internet problems that failed to download the above-required packages. This issue got resolved after downloading them. I hope it helps someone!