|
| 1 | +page.title=SDK Manager |
| 2 | +@jd:body |
| 3 | + |
| 4 | + |
| 5 | +<p>The Android SDK separates tools, platforms, and other components into packages you can |
| 6 | + download using the SDK Manager.</p> |
| 7 | + |
| 8 | +<p>You can launch the SDK Manager in one of the following ways:</p> |
| 9 | +<ul> |
| 10 | + <li>On Windows, double-click the <code>SDK Manager.exe</code> file at the root of the Android |
| 11 | +SDK directory.</li> |
| 12 | + <li>On Mac or Linux, open a terminal and navigate to the <code>tools/</code> directory in the |
| 13 | +Android SDK, then execute <code>android sdk</code>.</li> |
| 14 | +</ul> |
| 15 | + |
| 16 | +<p>You can select which packages you want to download by toggling the checkboxes on the left, then |
| 17 | +click <strong>Install</strong> to install the selected packages.</p> |
| 18 | + |
| 19 | +<img src="{@docRoot}images/sdk_manager_packages.png" alt="" /> |
| 20 | +<p class="img-caption"><strong>Figure 1.</strong> The Android SDK Manager shows the |
| 21 | +SDK packages that are available, already installed, or for which an update is available.</p> |
| 22 | + |
| 23 | + |
| 24 | +<h2 id="Recommended">Recommended Packages</h2> |
| 25 | + |
| 26 | +<p>Here's an outline of the packages required and those we recommend you use: |
| 27 | +</p> |
| 28 | + |
| 29 | +<dl> |
| 30 | + <dt>SDK Tools</dt> |
| 31 | + <dd><strong>Required.</strong> Your new SDK installation already has the latest version. Make sure |
| 32 | +you keep this up to date.</dd> |
| 33 | + <dt>SDK Platform-tools</dt> |
| 34 | + <dd><strong>Required.</strong> You must install this package when you install the SDK for |
| 35 | +the first time.</dd> |
| 36 | + <dt>SDK Platform</dt> |
| 37 | + <dd><strong>Required.</strong>You must download <em>at least one platform</em> into your |
| 38 | +environment so you're able to compile your application. In order to provide the best user experience |
| 39 | +on the latest devices, we recommend that you use the latest platform version as your build target. |
| 40 | +You'll still be able to run your app on older versions, but you must build against the latest |
| 41 | +version in order to use new features when running on devices with the latest version of Android. |
| 42 | + <p>To get started, download the latest Android version, plus the lowest version you plan |
| 43 | + to support (we recommend Android 2.2 for your lowest version).</p></dd> |
| 44 | + <dt>System Image</dt> |
| 45 | + <dd>Recommended. Although you might have one or more Android-powered devices on which to test |
| 46 | + your app, it's unlikely you have a device for every version of Android your app supports. It's |
| 47 | +a good practice to download system images for all versions of Android your app supports and test |
| 48 | +your app running on them with the <a href="{@docRoot}tools/devices/emulator.html">Android emulator</a>.</dd> |
| 49 | + <dt>Android Support</dt> |
| 50 | + <dd>Recommended. Includes a static library that allows you to use some of the latest |
| 51 | +Android APIs (such as <a href="{@docRoot}guide/components/fragments.html">fragments</a>, |
| 52 | +plus others not included in the framework at all) on devices running |
| 53 | +a platform version as old as Android 1.6. All of the activity templates available when creating |
| 54 | +a new project with the <a href="{@docRoot}tools/sdk/eclipse-adt.html">ADT Plugin</a> |
| 55 | +require this. For more information, read <a |
| 56 | +href="{@docRoot}tools/extras/support-library.html">Support Library</a>.</dd> |
| 57 | + <dt>SDK Samples</dt> |
| 58 | + <dd>Recommended. The samples give you source code that you can use to learn about |
| 59 | +Android, load as a project and run, or reuse in your own app. Note that multiple |
| 60 | +samples packages are available — one for each Android platform version. When |
| 61 | +you are choosing a samples package to download, select the one whose API Level |
| 62 | +matches the API Level of the Android platform that you plan to use.</dd> |
| 63 | +</dl> |
| 64 | + |
| 65 | +<p class="note"><strong>Tip:</strong> For easy access to the SDK tools from a command line, add the |
| 66 | +location of the SDK's <code>tools/</code> and |
| 67 | +<code>platform-tools</code> to your <code>PATH</code> environment variable.</p> |
0 commit comments