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