Install the Android SDK. ... code example
Example: 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