Follow the below steps to solve this:
- Click on the SDK Manager logo.
 
- Click Launch StandAlone SDK Manager.
 
- The SDK manager dialogue box shows up.
 
- Click cexbox [Tools] and Install all packages.
 
- Restart android studio and boot again.
 
After doing all this you will be good to go. I hope this helps you.