page.title=Updating Your SDK @jd:body
Updating your Android SDK is fast and easy. To perform an update, use the Android SDK and AVD Manager to install or update the individual SDK components that you need.
It only takes a couple of clicks to install individual versions of the Android platform, new development tools, new documentation, and SDK add-ons. The new SDK components are automatically installed into your existing SDK directory, so you don't need to update your development environment to specify a new SDK location.
Because each version of the Android platform can be installed as an individual component of your SDK, you can customize your development environment to the Android platforms you are targetting. Testing your app on multiple versions of the platform is very important in order to successfully operate on as many devices as possible. Be sure to install each version of the Android platform with which your app is compatible, then test your apps on AVDs that run each platform.
If you develop applications using Eclipse, you may also need to update your ADT plugin when you update your development tools or in order to compile against a new version of the platform. See the SDK Release Notes for ADT compatibility.
Use the Android SDK and AVD Manager to install new SDK components. To launch the SDK and AVD Manager:
When a new platform version, add-on, set of development tools or documentation becomes available, you can quickly install them into your existing Android SDK:
New platforms are automatically saved into the
<sdk>/platforms/
directory of your SDK;
new add-ons are saved in the <sdk>/add-ons/
directory; and new documentation is saved in the existing
<sdk>/docs/
directory (old docs are replaced).
Tip: Use the "Display updates only" checkbox to show only the components you do not have.
By default, Available Components only shows the Google repository for Android SDK components and Google API add-ons. You can add additional sites that host Android SDK add-ons, then download SDK add-ons 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 to develop using their libraries, you must install their 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:
Any SDK components available from the site will now be listed under Available Components.
You may need to update your ADT plugin depending on what version of the development tools you are using and what version of the Android platform you are compiling against. It's easy to update your plugin through Eclipse and we recommend that you stay up-to-date in order to avoid any problems.
With the latest version of ADT, you can still compile existing applications against previous versions of the Android platform. However, the latest ADT may not work with a previous version of the development tools. See the Android development tools release notes for compatibility information.
To update ADT, follow the procedure below for your respective version of Eclipse.
Eclipse 3.4 (Ganymede) | Eclipse 3.5 (Galileo) |
---|---|
|
|
If you encounter problems with this update procedure, try performing a fresh installation. Fully remove your existing ADT Plugin as described in Uninstall your previous ADT plugin and then follow the guide to Installing the ADT Plugin for Eclipse.