download sdk for android studio code example

Example 1: install android sdk

Android SDK is bundled with Android Studio
(this is the easiest way to install and use the SDK)
https://developer.android.com/studio

Or you can install it seperately
https://developer.android.com/studio#command-tools

Example 2: android studio

Android Studio is the official integrated development environment for Google's
Android operating system, built on JetBrains' IntelliJ IDEA software and
designed specifically for Android development.

Example 3: 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.