It took me a while to figure this out, since the documentation is not entirely clear on this. Cancel the Android SDK path request dialog box and do the following:
Open the Android Studio IDE. Locate the down arrow icon, there should be a second last icon on the toolbar. Click this. You will see the path for the Android SDK Location:. Click on the edit link to the right of this. This will bring up the SDK components screen. If you can check the boxes there, check them out. Perhaps they have already been verified or may be disabled. You can leave the path as is, for me this is:
C:\Users\<user name>\AppData\Local\Android\Sdk
Depending on whether you had Android Studio before it could say that it detected a previous version and it would only download the necessary components. This is normal. Now click the NEXT button. A confirmation screen will appear with the installation type and SDK folder. If you want to change your SDK folder, this is your last chance, if not, press NEXT again.
The Terms and Conditions screen may appear, click the Accept button, and then NEXT. Go and download the base Android SDK. When done, click Finish.
After that, you will be taken to the "Platforms" screen, where you can choose which Android platforms you want to support. those. Android 9.0 (Pie), Android 8.1 (Oreo). Select all the platforms you need and click "APPLY".
The bootloader will capture all these packages for you. Then go to the SDK Tools tab. Check the boxes for the tools you need and click "APPLY". He can again call up the "Terms and Conditions" screen, click the "Accept" and "NEXT" buttons. When done, just click Finish and you're done.
source share