blob: 1099c3c89b615f16305a1a69bbde532f7d272d29 [file] [log] [blame]
Dirk Dougherty7b229ef2010-03-26 17:32:26 -07001page.title=Installing the SDK
Dirk Doughertyee58d1b2009-10-16 15:25:15 -07002sdk.preview=0
3
4@jd:body
5
6<div id="qv-wrapper">
7<div id="qv">
8
9 <h2>In this document</h2>
10 <ol>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070011 <li><a href="#Preparing">Preparing Your Development Computer</a></li>
12 <li><a href="#Installing">Downloading the SDK Starter Package</a></li>
13 <li><a href="#InstallingADT">Installing the ADT Plugin for Eclipse</a></li>
14 <li><a href="#components">Adding Platforms and Other Components</a>
15 <ol>
16 <li><a href="#which">Which components do I need?</a></li>
17 </ol></li>
18 <li><a href="#sdkContents">Exploring the SDK</a></li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070019 <li><a href="#NextSteps">Next Steps</a></li>
20 <li><a href="#troubleshooting">Troubleshooting</a></li>
21 </ol>
22
23<h2>See also</h2>
24 <ol>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070025 <li><a href="{@docRoot}sdk/eclipse-adt.html">ADT Plugin for Eclipse</a></li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070026 <li><a href="{@docRoot}sdk/adding-components.html">Adding SDK Components</a></li>
27 </ol>
28
29</div>
30</div>
31
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070032<p>This page describes how to install the Android SDK
Dirk Doughertya374f512009-11-09 11:41:09 -080033and set up your development environment for the first time.</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070034
35<p>If you encounter any problems during installation, see the
Dirk Doughertya250f0c2009-10-22 18:02:45 -070036<a href="#troubleshooting">Troubleshooting</a> section at the bottom of
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070037this page.</p>
38
39<h4>Updating?</h4>
40
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070041<p>If you are currently using the Android 1.6 SDK or later and want to update
42to the latest tools or platforms, you do not need to install a new SDK. Instead,
43you can simply update the individual components in your SDK using the
44Android SDK and AVD Manager tool. For information about how to do that, see <a
45href="{@docRoot}sdk/adding-components.html#UpdatingComponents">Updating SDK
46Components</a></p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070047
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070048<p>If you are using Android 1.5 SDK or earlier, you should install a new SDK as
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070049described in this document and move your application projects to the new
Dirk Doughertya374f512009-11-09 11:41:09 -080050SDK environment. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070051
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070052
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070053<h2 id="Preparing">Step 1. Preparing Your Development Computer</h2>
54
55<p>Before getting started with the Android SDK, take a moment to confirm that
56your development computer meets the <a href="requirements.html">System
57Requirements</a>. In particular, you may need to install the <a
58href="http://java.sun.com/javase/downloads/index.jsp">JDK</a> before
59continuing, if it's not already installed on your computer. </p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070060
61<p>If you will be developing in Eclipse with the Android Development
62Tools (ADT) Plugin &mdash; the recommended path if you are new to
63Android &mdash; make sure that you have a suitable version of Eclipse
64installed on your computer (3.4 or newer is recommended). If you need
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070065to install Eclipse, you can download it from this location: </p>
66
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070067<p style="margin-left:2em;"><a href=
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070068"http://www.eclipse.org/downloads/">http://www.eclipse.org/downloads/</a></p>
69
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070070<p>A Java or RCP version of Eclipse is recommended. For Eclipse 3.5, the
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070071"Eclipse Classic" version is recommended.</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070072
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070073
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070074<h2 id="Installing">Step 2. Downloading the SDK Starter Package</h2>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070075
Dirk Dougherty7b229ef2010-03-26 17:32:26 -070076<p>The first step in setting up your environment for developing Android applications
77is downloading the Android SDK starter package. The starter package is not a full
78development environment &mdash; it includes only the core SDK Tools, which you can
79use to download the rest of the SDK components. </p>
80
81<p>You can get the latest version of the SDK starter package from the <a
82href="{@docRoot}sdk/index.html">SDK download page</a>. Make sure to download the
83package that is appropriate for your development computer.</p>
84
85<p>After downloading, unpack the Android SDK archive to a safe location on your
Dirk Doughertya374f512009-11-09 11:41:09 -080086machine. By default, the SDK files are unpacked into a directory named
87<code>android-sdk-&lt;machine-platform&gt;</code>. Make a note of the name and
88location of the unpacked SDK directory on your system &mdash; you will need to
89refer to the SDK directory later, when setting up the ADT plugin or when using
90the SDK tools.</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -070091
92<p>Optionally, you may want to add the location of the SDK's primary
93<code>tools</code> directory to your system <code>PATH</code>. The primary
94<code>tools/</code> directory is located at the root of the SDK folder. Adding
95<code>tools</code> to your path lets you run Android Debug Bridge (adb) and the
96other command line <a
97href="{@docRoot}guide/developing/tools/index.html">tools</a> without needing to
98supply the full path to the tools directory. </p>
99
100<ul>
101 <li>On Linux, edit your <code>~/.bash_profile</code> or <code>~/.bashrc</code> file. Look
102 for a line that sets the PATH environment variable and add the
103 full path to the <code>tools/</code> directory to it. If you don't
104 see a line setting the path, you can add one:</li>
105
106 <ul><code>export PATH=${PATH}:<em>&lt;your_sdk_dir&gt;</em>/tools</code></ul>
107
108 <li>On a Mac OS X, look in your home directory for <code>.bash_profile</code> and
109 proceed as for Linux. You can create the <code>.bash_profile</code> if
110 you haven't already set one up on your machine. </li>
111
112 <li>On Windows, right-click on My Computer, and select Properties.
113 Under the Advanced tab, hit the Environment Variables button, and in the
114 dialog that comes up, double-click on Path (under System Variables). Add the full path to the
115 <code>tools/</code> directory to the path. </li>
116 </ul>
117
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700118<p>If you will be using the Eclipse IDE as your development environment, the
119next section describes how to install the Android Development Tools (ADT) plugin
120and set up Eclipse. If you choose not to use Eclipse, you can develop Android
121applications in an IDE of your choice and then compile, debug and deploy using
122the tools included in the SDK (skip to <a href="#components">Adding Platforms
123and Other Components</a>).</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700124
125
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700126<h2 id="InstallingADT">Step 3. Installing the ADT Plugin for Eclipse</h2>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700127
128<p>Android offers a custom plugin for the Eclipse IDE, called Android
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700129Development Tools (ADT), that is designed to give you a powerful, integrated
130environment in which to build Android applications. It extends the capabilites
131of Eclipse to let you quickly set up new Android projects, create an application
132UI, add components based on the Android Framework API, debug your applications
133using the Android SDK tools, and even export signed (or unsigned) APKs in order
134to distribute your application. In general, developing in Eclipse with ADT is a
135highly recommended approach and is the fastest way to get started with Android.
136</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700137
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700138<p>If you'd like to use ADT for developing Android applications, install it now.
139Read <a href="{@docRoot}sdk/eclipse-adt.html">ADT Plugin for Eclipse</a> for
140step-by-step installation instructions, then return here to continue with the
141last step in setting up your SDK: adding platforms and other
142components.</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700143
144<p>If you prefer to work in an IDE other than Eclipse, you do not need to
145install Eclipse or ADT, instead, you can directly use the SDK tools to build and
Dirk Doughertyeeb0b252009-10-22 16:08:32 -0700146debug your application.</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700147
Dirk Doughertybf15ce62009-10-23 19:17:12 -0700148
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700149<h2 id="components">Step 4. Adding Android Platforms and Other Components</h2>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700150
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700151<div class="sidebox-wrapper" style="margin-right:2.5em;">
152<div class="sidebox"> <h2>Using the Android SDK and AVD Manager</h2>
Dirk Doughertybf15ce62009-10-23 19:17:12 -0700153
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700154<p>The <em>Android SDK and AVD Manager</em> is a tool that you will use often,
155to add components to your SDK environment and manage Android Virtual Devices.
156</p>
157
158<p style="margin-top:.5em;">The tool is pre-installed in your SDK. See <a
159href="adding-components.html">Adding SDK Components</a> for details on how to
160launch and use the tool.</p>
Dirk Doughertybf15ce62009-10-23 19:17:12 -0700161</div>
162</div>
163
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700164<p>The last step in setting up your SDK is using a tool included the SDK starter
165package &mdash; the <em>Android SDK and AVD Manager</em> &mdash; to download
166essential components into your development environment. Read the information
167below to understand what components you'll need, then see <a
168href="adding-components.html">Adding SDK Components</a> for step-by-step
169instructions on how to launch the Android SDK and AVD Manager and download the
170components into your environment.</p>
Dirk Doughertybf15ce62009-10-23 19:17:12 -0700171
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700172<p>The SDK uses a modular structure that separates the major parts of the SDK
173&mdash; Android platform versions, add-ons, tools, samples, and the API
174documentation &mdash; into a set of separately installable components. The SDK
175starter package, which you've already downloaded, includes only a single
176component: the latest version of the SDK Tools. To develop any Android
177application, you also need to download at least one Android platform into your
178environment, although downloading additional components is highly recommended.
179See <a href="#which">Which components do I need?</a> for information about
180which components are required and which are optional.</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700181
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700182<p>The SDK repository offers these types of components:</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700183
184<ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700185<li><strong>SDK Tools</strong> (pre-installed in the Android SDK starter
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700186package) &mdash; Contains the full set of SDK tools for developing, debugging,
187and testing your application code and UI. You can read about the tools in the <a
188href="{@docRoot}guide/developing/tools/index.html">Dev Guide</a> and access them
189in the <code>&lt;sdk&gt;/tools/</code> directory. </li>
190
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700191<li><strong>Android platforms</strong> &mdash; An SDK platform is
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700192available for every production Android platform deployable to Android-powered
193devices. Each platform component includes a fully compliant Android library and
194system image, sample code, emulator skins, and any version specific tools. For
195detailed information about each platform, see the overview documents available
196under the section "Downloadable SDK Components," at left. </li>
197
198<li><strong>SDK Add-Ons</strong> &mdash; SDK add-ons provide a development
199environment for specific Android external
200library or a customized (but fully compliant) Android system image. The Android
201SDK repository offers the Google APIs Add-On, which gives your application
202access to powerful mapping capabilities through the
203<code>com.google.android.maps</code> library. You can also add additional
204repositories, so that you can download other SDK add-ons, where available. </li>
205
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700206<li><strong>USB Driver for Windows</strong> &mdash; Contains driver files
207that you can install on your Windows computer, so that you can run and debug
208your applications on an actual device. You <em>do not</em> need the USB driver unless
209you plan to debug your application on an actual Android-powered device. If you
210develop on Mac OS X or Linux, you do not need a special driver to debug
211your application on an Android-powered device.</li>
212
213<li><strong>Samples</strong> &mdash; Contains the sample code and apps available
214for each Android development platform. If you are just getting started with
215Android development, make sure to download the samples to your SDK. <!--The download
216includes not only a set of very useful sample apps, but also the source for <a
217href="{@docRoot}resources/tutorials/hello-world.html">Hello World</a> and other
218tutorials. --></li>
219
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700220<li><strong>Documentation</strong> &mdash; Contains a local copy of the latest
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700221multiversion documentation for the Android framework API. </li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700222</ul>
223
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700224<p>To download components, use the graphical UI of the Android SDK and AVD
225Manager, shown in Figure 1, to browse the SDK repository, select new or updated
226components for download, and then install the selected components in your SDK
227environment. </p>
228
229<div style="TEXT-ALIGN:left;width:600px;">
230<img src="/images/sdk_manager_packages.png"
231style="padding-bottom:0;margin-bottom:0;" />
232<p class="caption" style="margin:0 0 1.5em 1em;padding:0 0 0
2331em;"><strong>Figure 1.</strong> The Android SDK and AVD Manager's
234<strong>Available Packages</strong>
235panel, which shows the SDK components that are
236available for you to download into your environment. </p>
237</div>
238
239
240<h3 id="which">Which components do I need?</h3>
241
242<p>The SDK repository contains a range of components that you can download.
243Use the table below to determine which components you need, based on whether you
244want to set up a basic (but functionnal) development environment or a
245recommended or full development environment: </p>
246
247<table style="width:95%">
248
249<tr>
250<th>Environment</th>
251<th>SDK&nbsp;Component</th>
252<th>Comments</th>
253</tr>
254
255<tr>
256<td rowspan="2" style="font-size:.9em;background-color:#FFE;">Basic</td>
257<td style="font-size:.9em;background-color:#FFE;color:gray">SDK Tools</td>
258<td style="font-size:.9em;background-color:#FFE;color:gray">If you've installed
259the SDK starter package, then you already have this component preinstalled. The
260SDK Tools component is required &mdash; you can't develop or build an application
261without it. </td>
262</tr>
263
264<tr>
265<td style="font-size:.9em;background-color:#FFE;">SDK platform</td>
266<td style="font-size:.9em;background-color:#FFE;">You need to download <strong
267style="color:red">at least one platform</strong> into your environment, so that
268you will be able to compile your application and set up an Android Virtual
269Device (AVD) to run it on (in the emulator). To start with, just download the
270latest version of the platform. Later, if you plan to publish your application,
271you will want to download other platforms as well, so that you can test your
272application on the full range of Android platform versions that your customers
273are using.</td>
274</tr>
275<tr>
276<td colspan="3" style="border:none;text-align:center;font-size:1.5em;font-weight:bold;">+</td>
277</tr>
278<tr>
279<td rowspan="3">Recommended</td>
280<td>Documentation</td>
281<td>The Documentation component is useful because it lets you work offline and
282also look up API reference information from inside Eclipse.</td>
283</tr>
284
285<tr>
286<td>Samples</td>
287<td>The Samples components give you source code that you can use to learn about
288Android, load as a project and run, or reuse in your own app. Note that multiple
289samples components are available &mdash; one for each Android platform version. When
290you are choosing a samples component to download, select the one whose API Level
291matches the API Level of the Android platform that you plan to use.</td>
292</tr>
293<tr>
294<td>Usb Driver</td>
295<td>The Usb Driver component is needed only if you are developing on Windows and
296have an Android-powered device on which you want to install your application for
297debugging and testing. For Mac OS X and Linux platforms, no
298special driver is needed.</td>
299</tr>
300<tr>
301<td colspan="3" style="border:none;text-align:center;font-size:1.5em;font-weight:bold;">+</td>
302</tr>
303<tr>
304<td rowspan="3">Full</td>
305<td>Google APIs</td>
306<td>The Google APIs add-on gives your application access to the Maps external
307library, which makes it easy to display and manipulate Maps data in your
308application. </td>
309</tr>
310<tr>
311<td>Additional SDK Platforms</td>
312<td>If you plan to publish your application, you will want to download
313additional platforms corresponding to the Android platform versions on which you
314want the application to run. The recommended approach is to compile your
315application against the lowest version you want to support, but test it against
Dirk Doughertybf15ce62009-10-23 19:17:12 -0700316higher versions that you intend the application to run on. You can test your
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700317applications on different platforms by running in an Android Virtual Device
318(AVD) on the Android emulator.</td>
319</tr>
320
321</table>
Dirk Doughertyeeb0b252009-10-22 16:08:32 -0700322
Dirk Doughertybf15ce62009-10-23 19:17:12 -0700323<p>For step-by-step instructions on how to use the Android SDK and AVD Manager
324to add components, see the <a href="{@docRoot}sdk/adding-components.html">Adding
325SDK Components</a> document. </p>
326
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700327<p>For revision notes and other detailed information about individual SDK
Dirk Doughertybf15ce62009-10-23 19:17:12 -0700328components, see the documents listed under "Downloadable SDK Components" in
329the navigation at left.</p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700330
331
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700332<h2 id="sdkContents">Step 5. Exploring the SDK</h2>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700333
334<p>Once you've installed the SDK and downloaded the platforms, documentation,
335and add-ons that you need, open the SDK directory and take a look at what's
336inside.</p>
337
Dirk Doughertyeeb0b252009-10-22 16:08:32 -0700338<p>The table below describes the full SDK directory contents, with components
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700339installed. </p>
340
341<table>
342<tr>
343<th colspan="3">Name</th><th>Description</th>
344</tr>
345<tr>
346<td colspan="3"><code>add-ons/</code></td>
347<td>Contains add-ons to the Android SDK development
348environment, which let you develop against external libraries that are available on some
349devices. </td>
350</tr>
351<tr>
352<td colspan="3"><code>docs/</code></td>
353<td>A full set of documentation in HTML format, including the Developer's Guide,
Dirk Doughertyeeb0b252009-10-22 16:08:32 -0700354API Reference, and other information. To read the documentation, load the
355file <code>offline.html</code> in a web browser.</td>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700356</tr>
357<tr>
358<td colspan="3"><code>platforms/</code></td>
359<td>Contains a set of Android platform versions that you can develop
360applications against, each in a separate directory. </td>
361</tr>
362<tr>
363<td style="width:2em;border-bottom-color:white;"></td>
364<td colspan="2"><code>&lt;platform&gt;/</code></td>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700365<td>Platform version directory, for example "android-1.6". All platform version
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700366directories contain a similar set of files and subdirectory structure.</td>
367</tr>
368
369<tr>
370<td style="width:2em;border-bottom-color:white;">&nbsp;</td>
371<td style="width:2em;border-bottom-color:white;"></td>
372<td><code>data/</code></td>
373<td>Storage area for default fonts and resource definitions.</td>
374</tr>
375<tr>
376<td style="width:2em;border-bottom-color:white;"></td>
377<td style="width:2em;border-bottom-color:white;"></td>
378<td><code>images/</code></td>
379<td>Storage area for default disk images, including the Android system image,
380the default userdata image, the default ramdisk image, and more. The images
381are used in emulator sessions.</td>
382</tr>
383<tr>
384<td style="width:2em;border-bottom-color:white;"></td>
385<td style="width:2em;border-bottom-color:white;"></td>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700386<td><code>skins/</code></td>
387<td>A set of emulator skins available for the platform version. Each skin is
388designed for a specific screen resolution.</td>
389</tr>
390<tr>
391<td style="width:2em;border-bottom-color:white;"></td>
392<td style="width:2em;border-bottom-color:white;"></td>
393<td><code>templates/</code></td>
394<td>Storage area for file templates used by the SDK development tools.</td>
395</tr>
396<tr>
397<td style="width:2em;border-bottom-color:white;"></td>
398<td style="width:2em;border-bottom-color:white;"></td>
399<td><code>tools/</code></td>
400<td>Any development tools that are specific to the platform version.</td>
401</tr>
402<tr>
403<td style="width:2em;"></td>
404<td style="width:2em;"></td>
405<td><code>android.jar</code></td>
406<td>The Android library used when compiling applications against this platform
407version.</td>
408</tr>
409<tr>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700410<td colspan="3"><code>samples/</code></td>
411<td>Sample code and apps that are specific to platform version.</td>
412</tr>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700413<td colspan="3"><code>tools/</code></td>
414<td>Contains the set of development and profiling tools available to you, such
415as the emulator, the <code>android</code> tool, adb, ddms, and more.</td>
416</tr>
417<tr>
Dirk Doughertyeeb0b252009-10-22 16:08:32 -0700418<td colspan="3"><code>SDK Readme.txt</code></td>
419<td>A file that explains how to perform the initial setup of your SDK,
420including how to launch the Android SDK and AVD Manager tool on all
421platforms</td>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700422</tr>
423<tr>
Dirk Doughertyeeb0b252009-10-22 16:08:32 -0700424<td colspan="3"><code>SDK Setup.exe</code></td>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700425<td>Windows SDK only. A shortcut that launches the Android SDK and AVD
Dirk Doughertyeeb0b252009-10-22 16:08:32 -0700426Manager tool, which you use to add components to your SDK. </td>
427</tr>
428<!--<tr>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700429<td colspan="3"><code>documentation.html</code></td>
430<td>A file that loads the entry page for the local Android SDK
431documentation.</td>
Dirk Doughertyeeb0b252009-10-22 16:08:32 -0700432</tr>-->
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700433
434</table>
435
436<h2 id="NextSteps">Next Steps</h2>
437<p>Once you have completed installation, you are ready to
438begin developing applications. Here are a few ways you can get started: </p>
439
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700440<p><strong>Set up the Hello World application</strong></p>
441<ul>
442 <li>If you have just installed the SDK for the first time, <a
443 href="{@docRoot}resources/tutorials/hello-world.html">go to the Hello
444 World tutorial</a>. The tutorial takes you step-by-step through the process
445 of setting up your first Android project, including setting up an Android
446 Virtual Device (AVD) on which to run the application.
447</li>
448</ul>
449
450<p class="caution">Following the Hello World tutorial is an essential
451first step in getting started with Android development. </p>
452
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700453<p><strong>Learn about Android</strong></p>
454<ul>
455 <li>Take a look at the <a href="{@docRoot}guide/index.html">Dev
456 Guide</a> and the types of information it provides</li>
457 <li>Read an introduction to Android as a platform in <a
458 href="{@docRoot}guide/basics/what-is-android.html">What is
459 Android?</a></li>
460 <li>Learn about the Android framework and how applications run on it in
461 <a href="{@docRoot}guide/topics/fundamentals.html">Application
462 Fundamentals</a></li>
463 <li>Take a look at the Android framework API specification in the <a
464 href="{@docRoot}reference/packages.html">Reference</a> tab</li>
465</ul>
466
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700467<p><strong>Explore the development tools</strong></p>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700468<ul>
469 <li>Get an overview of the <a
470 href="{@docRoot}guide/developing/tools/index.html">development
471 tools</a> that are available to you</li>
472 <li>Read how to develop <a
473 href="{@docRoot}guide/developing/eclipse-adt.html">in Eclipse/ADT</a> or
474 <a href="{@docRoot}guide/developing/other-ide.html">in other IDEs</a>
475 </li>
476</ul>
477
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700478<p><strong>Follow the Notepad tutorial</strong></p>
479
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700480<ul>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700481 <li>The <a href="{@docRoot}resources/tutorials/notepad/index.html">
482 Notepad Tutorial</a> shows you how to build a full Android application
483 and provides helpful commentary on the Android system and API. The
484 Notepad tutorial helps you bring together the important design
485 and architectural concepts in a moderately complex application.
486 </li>
487</ul>
488<p class="caution">Following the Notepad tutorial is an excellent
489second step in getting started with Android development. </p>
490
491<p><strong>Explore some code</strong></p>
492
493<ul>
494 <li>The Android SDK includes sample code and applications for each platform
495version. You can browse the samples in the <a
496href="{@docRoot}resources/index.html">Resources</a> tab or download them
497into your SDK using the Android SDK and AVD Manager. Once you've downloaded the
498samples, you'll find them in
499<code><em>&lt;sdk&gt;</em>/samples/<em>&lt;platform&gt;/</em></code>. </li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700500</ul>
501
502<p><strong>Visit the Android developer groups</strong></p>
503<ul>
504 <li>Take a look at the <a
Dirk Dougherty22558d02009-12-10 16:25:06 -0800505 href="{@docRoot}resources/community-groups.html">Community</a> pages to see a list of
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700506 Android developers groups. In particular, you might want to look at the
507 <a href="http://groups.google.com/group/android-developers">Android
508 Developers</a> group to get a sense for what the Android developer
509 community is like.</li>
510</ul>
511
Dirk Dougherty6b13bc02009-10-30 19:05:53 -0700512<h2 id="troubleshooting">Troubleshooting</h2>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700513
514<h3>Ubuntu Linux Notes</h3>
515
516<ul>
517 <li>If you need help installing and configuring Java on your
518 development machine, you might find these resources helpful:
519 <ul>
520 <li><a href="https://help.ubuntu.com/community/Java">https://help.ubuntu.com/community/Java </a></li>
521 <li><a href="https://help.ubuntu.com/community/Java">https://help.ubuntu.com/community/JavaInstallation</a></li>
522 </ul>
523 </li>
524 <li>Here are the steps to install Java and Eclipse, prior to installing
525 the Android SDK and ADT Plugin.
526 <ol>
527 <li>If you are running a 64-bit distribution on your development
528 machine, you need to install the <code>ia32-libs</code> package using
529 <code>apt-get:</code>:
530 <pre>apt-get install ia32-libs</pre>
531 </li>
Scott Mainef4ca452010-04-12 16:05:49 -0700532 <li>Next, install Java: <pre>apt-get install sun-java6-jdk</pre></li>
Dirk Doughertyee58d1b2009-10-16 15:25:15 -0700533 <li>The Ubuntu package manager does not currently offer an Eclipse 3.3
534 version for download, so we recommend that you download Eclipse from
535 eclipse.org (<a
536 href="http://www.eclipse.org/downloads/">http://www.eclipse.org/
537 downloads/</a>). A Java or RCP version of Eclipse is recommended.</li>
538 <li>Follow the steps given in previous sections to install the SDK
539 and the ADT plugin. </li>
540 </ol>
541 </li>
542</ul>
543
544<h3>Other Linux Notes</h3>
545
546<ul>
547 <li>If JDK is already installed on your development computer, please
548 take a moment to make sure that it meets the version requirements listed
549 in the <a href="requirements.html">System Requirements</a>.
550 In particular, note that some Linux distributions may include JDK 1.4 or Gnu
551 Compiler for Java, both of which are not supported for Android development.</li>
Dirk Dougherty7b229ef2010-03-26 17:32:26 -0700552</ul>