When you install Android Studio, it doesn't include all the Android SDK packages that are needed for development. The Android SDK separates tools, platforms, and other components and libraries into packages that can be downloaded, as needed using the Android SDK Manager. Before we start creating an application, we need to add some required packages into the Android SDK.
Launch SDK Manager from Android Studio, Tools | Android | SDK Manager:
Let's quickly go over a few items in the preceding screenshot.
As you can see, the Android SDK's location is /opt/android-sdk
on my machine. It may very well be different on your machine depending on what you selected during the Android Studio installation. The important point to note is that the Android SDK is installed in a different location than Android Studio's path (/Applications/Android\ Studio.app/
).
This is considered a good practice because the Android SDK installation can be unaffected depending on a new installation or upgrade...