This page describes how to install the Android SDK and set up your development environment. If you haven't downloaded the SDK yet, you can use the link below to get started. Then read the rest of this document to learn how to install, configure, and use the SDK to create Android applications.
If you have already developed applications using an earlier version of the SDK (m3 or m5), please skip this page and read the Upgrading the SDK document.
To develop Android applications using the code and tools in the Android SDK, you need a suitable development computer and development environment, as described below.
Supported Operating Systems:
Supported Development Environments:
Note: If JDK is already installed on your development computer, please take a moment to make sure that it meets the version requirements listed above. In particular, note that some Linux distributions may include JDK 1.4 or Gnu Compiler for Java, both of which are not supported for Android development.
After downloading the SDK, unpack the .zip archive to a suitable location on your machine. By default, the SDK files are unpacked into a directory named android_sdk_<platform>_<release>_<build>
. The directory contains the subdirectories tools/
, samples/
, and others.
Make a note of the name and location of the unpacked SDK directory on your system — you will need to refer to the SDK directory later, when setting up the Android plugin or using SDK tools.
Optionally, you can add the path to the SDK tools
directory to your path. As mentioned above, the tools/
directory is located in the SDK directory.
tools/
directory to it. If you don't
see a line setting the path, you can add one:export PATH=${PATH}:<your_sdk_dir>/tools
tools/
directory to the path. Adding tools
to your path lets you run Android Debug Bridge (adb) and the other command line tools without needing to supply the full path to the tools directory. Note that, if you update your SDK, you should remember to update your PATH settings to point to the new location, if different.
If you will be using the Eclipse IDE as your environment for developing Android applications, you can install a custom plugin called Android Development Tools (ADT), which adds integrated support for Android projects and tools. The ADT plugin includes a variety of powerful extensions that make creating, running, and debugging Android applications faster and easier.
If you will not be using the Eclipse IDE, you do not need to download or install the ADT plugin.
To download and install the ADT plugin, follow the steps below for your respective Eclipse version.
Eclipse 3.3 (Europa) | Eclipse 3.4 (Ganymede) |
---|---|
|
|
After restart, update your Eclipse preferences to point to the SDK directory:
If you are having trouble downloading the ADT plugin after following the steps listed at left, here are some suggestions:
http
, rather than https
. If you are still unable to use Eclipse to download the ADT plugin, follow these steps to download and install the plugin from your computer:
Note that to update your plugin, you will have to follow these steps again instead of the default update instructions.
Note that the "Android Editors" feature of ADT requires several optional Eclipse components (for example, WST). If you encounter an error when installing ADT, your Eclipse installion might not include those components. For information about how to quickly add the necessary components to your Eclipse installation, see the troubleshooting topic ADT Installation Error: "requires plug-in org.eclipse.wst.sse.ui".
In some cases, a new ADT plugin may become available for your existing version of the SDK. You can use the steps below to update the ADT plugin from inside Eclipse.
Eclipse 3.3 (Europa) | Eclipse 3.4 (Ganymede) |
---|---|
Alternatively,
|
|
Now that your development environment is setup, read the Developing and Debugging document to learn how to create an Android application.
Copyright 2007 Google Inc. | Build 0.9_r1-98467 - 14 Aug 2008 18:56 |