In Android Studio go to **Tools -> SDK Manager.**
Go to **SDK Tools tab**.
Select the **Android SDK Command-line Tools (latest)** and download by pressing **Apply**.
[![enter image description here][1]][1]
On **Windows**, you can find the **sdkmanager.bat** at
**C:\Users\[your_user]\AppData\Local\Android\Sdk\cmdline-tools\latest\bin**
[![enter image description here][2]][2]
[1]: https://i.stack.imgur.com/CzHvc.png
[2]: https://i.stack.imgur.com/GDwIw.png
In *Android Studio* go to **Tools -> SDK Manager**.
Go to **SDK Tools** tab.
Select the **Android SDK Command-line Tools (latest)** and download by pressing **Apply**.
[![enter image description here][1]][1]
On **Windows**, you can find the sdkmanager.bat at
**C:\Users\\[your_user]\AppData\Local\Android\Sdk\cmdline-tools\latest\bin**
[![enter image description here][2]][2]
[1]: https://i.stack.imgur.com/QZ2lT.png
[2]: https://i.stack.imgur.com/dBPJw.png