page.title=Updating Your SDK @jd:body

Quickview

In this document

  1. Installing SDK Packages
  2. Adding SDK Package Sites

The Android SDK and AVD Manager lets you update your Android SDK without a visit to the Android Developers web site. Instead of downloading an entirely new SDK that includes Android platforms, tools, and documentation, you can instead install only the individual packages that you want.

For example, when a new version of the Android platform is made available for developing applications, use the SDK and AVD Manager to install the platform into your existing SDK directory. You can then use the new platform in your AVDs and build your apps against it.

The benefit to using this feature is that your SDK directory will remain the same. You don't need to reset the SDK location in your Eclipse preferences or modify your {@code PATH} environment variable, because all new packages are installed into your existing SDK directory.

The SDK and AVD Manager can be opened in two ways:

The screenshot below shows the Android SDK and AVD Manager with the Available Packages open.

Installing SDK Packages

When a new Android SDK platform, add-on, set of development tools or documentation becomes available, you can quickly download and install them into your existing Android SDK:

  1. Select Available Packages in the left panel. This will reveal all packages currently available for download.
  2. Select the packages you'd like to install and click Install Selected.
  3. Verify and accept the packages you want and click Install Accepted. The packages will now be installed into your existing Android SDK directories.

New platforms are automatically saved into the <sdk_dir>/platforms/ directory of your SDK; new add-ons are saved in the <sdk_dir>/add-ons/ directory; and new documentation is saved in the existing <sdk_dir>/docs/ directory (old docs are replaced).

Tip: Use the "Display updates only" checkbox to show only the packages you do not have.

Adding SDK Package Sites

By default, Available Packages only shows the Google repository for Android SDK packages and Google API add-ons. You can add additional sites that host Android SDK add-ons, then download add-on packages from them.

For example, a mobile carrier or hardware manufacturer may offer additional API libraries that are supported by their own Android-powered devices. In order for you to develop using their libraries, you may need to install an Android SDK add-on. If the carrier or manufacturer has hosted an add-on repository file on their web site, add their site to the SDK and AVD Manager:

  1. Select Available Packages in the left panel.
  2. Click Add Site and enter the URL of the {@code repository.xml} file. Click OK.

Any SDK packages available from the web site will now be listed and available for you to install in your existing Android SDK.