how to download the android sdk manually for the android studio code example
Example: android studio sdk
After the installation, immediately close Android Studio,then start it as administrator.
A message might popup asking for the sdk manager location.
Ignore it (Close the popup).
Go to Tools > SDK Manager and click on the edit button on the right of Android SDK Location.
Then click Next, next and you're good to go.
Android Studio will let you install the sdk manager.