Once you install Android Studio, it's easy to keep the Android Studio IDE and various SDK tools up to date with automatic updates for Android Studio and the Android SDK Manager.
Android Studio notifies you with a small bubble dialog when an update is available for the IDE, but you can manually check for updates by clicking Help > Check for Update (on Mac, Android Studio > Check for Updates).
Updates for Android Studio are available from the following release channels:
By default, Android Studio offers updates from the Stable Channel. If you'd like to try one of the other versions of Android Studio—known collectively as the Preview Channels—you can choose to receive updates from one of those instead.
To change your update channel, proceed as follows:
Figure 1. The Android Studio Updates preferences.
If you'd like to try one of the preview channels (Canary, Dev, or Beta) while still using the Stable build for your production Android projects, you can safely install a second version of Android Studio by downloading the preview build from tools.android.com.
The Android SDK Manager provides the SDK tools, platforms, and other components you need to develop your apps.
To open the SDK Manager, click Tools > Android >
SDK Manager or click SDK Manager
in the toolbar.
When an update is available for a package you already have, a dash
appears in the check box next to the package.
Pending updates are indicated in the left column with a download icon
. Pending removals are
indicated with a red cross
.
To update the selected packages, click Apply or OK, then agree to any license agreements.
Figure 2. The Android SDK Manager.
You should give special consideration to the following tools in the SDK Tools tab:
In the SDK Platforms tab, you must also install at least one version of the Android platform. Each version provides several different packages. To download only those that are required, click the check box next to the version name.
To see all available packages for each Android platform, click Show Package Details at the bottom of the window. Within each platform version, you'll find the following packages:
Note: If you plan to use APIs from Google Play Services, you must use the Google APIs System Image.
The above list is not comprehensive and you can add other sites to download additional packages from third parties.
In some cases, an SDK package may require a specific minimum revision of another tool. If so, the SDK Manager notifies you with a warning and adds the dependencies to your list of downloads.
Tip: You can also customize the
build.gradle file so each project uses a specific build chain and
compilation options. For more information see, Configuring Gradle Builds.
To manage which SDK sites Android Studio checks for Android tools and third party tool updates, click the SDK Update Sites tab. You can add other sites that host their own tools, then download the packages from those sites.
For example, a mobile carrier or device manufacturer might offer additional API libraries that are supported by their own Android-powered devices. To develop using their libraries, you can install their Android SDK package by adding their SDK tools URL to the SDK Manager in the SDK Update Sites.
If a carrier or device manufacturer has hosted an SDK add-on repository file on their website, follow these steps to add their site to the Android SDK Manager:
at the
bottom of the window.Any SDK packages available from the site now appear in the SDK Platforms or SDK Tools tabs, as appropriate.