Parts of the SDK
2 minute readWhat are all these different things?
There are several components making up the SDK. I’ll list them here along with examples of how they can be installed later on when the SDK manager is set up and working.
This is just an overview to help your mental model of what’s what, we’re not installing anything just yet.
We download them as a zip and place them in a specific directory, as detailed later.
Command Line Tools
These commands can do several things like signing and optimising APKs, but the main one we are interested in is sdkmanager
. This is the command we use to install the other tools.
Platform Tools
These are tools for interfacing with Android which you may already be familiar with, such as adb
and fastboot
.
sdkmanager 'platform-tools'
Platforms
A platform represents a specific version of Android. It includes multiple system images, which the device emulator uses to emulate various devices on that platform.
Information used to compile your app for this platform version, and source code to be used for debugging are also included.
Multiple platforms can be installed alongside each other on the same system.
sdkmanager 'platforms;android-33'
Build Tools
These are tools used for building Android apps. I’m not 100% clear on what these are and why they are different from Platform Tools, it seems that they were part of Platform Tools in the past but have been sectioned off into their own thing.
Anyway, we need them. Usually use the latest version, but sometimes if you’re targeting specific platforms eg older ones, errors may indicate that you need an older version.
sdkmanager 'build-tools;33.0.2'