and Installation Instructions Android SDK and Android Development Tools (ADT) Microsoft Windows
and Installation Instructions Android SDK and Android Development Tools (ADT) Microsoft Windows
Microsoft Windows
Updated October, 2012
This document will describe how to download and install the Android SDK and Android
Development Tools (ADT) into your programming environment.
Before continuing, be sure that your computer already has the JDK and Eclipse software installed. You can find
instructional documentation for these steps if needed from your Student Menu or in your Installation Docs directory.
The TeenCoderTM: Android Programming course adds three pieces of free software to your existing JDK
and Eclipse development environment: the Android Software Development Kit (Android SDK),
the Android Development Tools (ADT) for Eclipse, and the Android Google APIs. These pieces
of software will enable you to write and test Android applications without any Android hardware!
This software is required for students in order to complete the course. Teachers who wish to view
activity solutions or projects on their own computer are also encouraged to install this software.
Copyright Notices:
Java, Java Development Kit (JDK) and related terms are all copyright by Oracle Corporation. Please see
http://www.oracle.com for more details. Eclipse and related terms are copyright by the Eclipse
Foundation. Android, Android Software Development Kit, and Android Development Tools and related terms
are all copyright by Google, Inc.
This document, TeenCoderTM: Java Programming, TeenCoderTM: Android Programming and related terms
are copyright by Homeschool Programming, Inc. This document may not be transmitted or
reproduced without written permission except under terms of your purchased course license.
Disclaimer:
Homeschool Programming, Inc, and their officers and shareholders, assume no liability for damage
to personal computers or loss of data residing on personal computers arising due to the use or
misuse of this course material. Always follow instructions provided by the manufacturer of 3rd party
programs that may be included or referenced by our courses.
http://www.HomeschoolProgramming.com
Page 1
http://www.HomeschoolProgramming.com
Page 2
Depending on your web browser and configuration, you may be prompted for a target download
location on your local hard drive, or the ZIP file may be automatically saved to a download folder.
Choose your newly created C:\android-sdk as your target folder if possible. If the ZIP files are
automatically saved to some other folder, then simply copy them over to C:\android-sdk when
the download is complete.
When the downloads are complete you should have the android-sdk-windows.zip and ADT16.0.1.zip files in your C:\android-sdk directory
http://www.HomeschoolProgramming.com
Page 3
If you have an older version of Windows or have installed some other 3rd party ZIP management
program such as WinZip or PKZip then your extraction process will be slightly different. When you
are finished, the C:\android-sdk directory should contain many sub-folders and files.
http://www.HomeschoolProgramming.com
Page 4
On this screen, you will need to click on the Add button that is circled in the upper-right corner
of the screen. This will bring up the Add Repository screen seen below. Here, you will enter the
name
Android
ADT and click on
the
Archive
button.
http://www.HomeschoolProgramming.com
Page 5
Browse to your C:\android-sdk folder, select the ADT-16.0.1.zip file, and click Open.
Your Add Repository dialog should now have a complete Location path to your local ZIP file, so
click OK to continue.
http://www.HomeschoolProgramming.com
Page 6
http://www.HomeschoolProgramming.com
Page 7
http://www.HomeschoolProgramming.com
Page 8
Now the ADT software will begin to install from your local ADT-16.0.1.zip file. This process can
take a few minutes.
http://www.HomeschoolProgramming.com
Page 9
If you do see this message, you can just click on OK and continue the download and installation.
Once the download and installation is complete, you will see the following message:
Click Restart Now. This will restart just the Eclipse software, not your whole computer!
You have completed the installation of the Eclipse Android Development Tools (ADT). After
restarting Eclipse you can continue to the next step: Configuring the Android SDK.
http://www.HomeschoolProgramming.com
Page 10
http://www.HomeschoolProgramming.com
Page 11
Congratulations! You have completed the installation for the Android ADT, Android SDK, and
supporting components. You are now ready to begin your Android development.
You do not need to continue to the next section.
http://www.HomeschoolProgramming.com
Page 12
Congratulations! You have completed the installation for the Android ADT, Android SDK, and
supporting components. You are now ready to begin your Android development.
You do not need to continue to the next section.
http://www.HomeschoolProgramming.com
Page 13
http://www.HomeschoolProgramming.com
Page 14
On this screen, you will need to click on the Add button that is circled in the upper-right corner
of the screen. This will bring up the Add Repository screen seen below. Here, you will enter the
name Android ADT and a location https://dl-ssl.google.com/android/eclipse/. Then you can
click OK.
http://www.HomeschoolProgramming.com
Page 15
NOTE: By the time you are installing on your computer, there will be higher Version numbers
available. By following this procedure you are choosing to install the latest versions instead of the
original levels used to create this course.
http://www.HomeschoolProgramming.com
Page 16
http://www.HomeschoolProgramming.com
Page 17
Now the ADT software will begin to download from the Internet. Depending on the speed of your
Internet connection, this process can take a few minutes.
http://www.HomeschoolProgramming.com
Page 18
If you do see this message, you can just click on OK and continue the download and installation.
Once the download and installation is complete, you will see the following message:
Click Restart Now. This will restart just the Eclipse software, not your whole computer!
Congratulations! You have completed the installation of the Eclipse Android Development Tools
(ADT). After restarting Eclipse you can continue to the next step: Installing the Android SDK.
http://www.HomeschoolProgramming.com
Page 19
At this point, you can have the Eclipse software automatically download and install the Android
SDK. Make sure that the radio button controls marked Install new SDK is selected and check the
box for Install the latest available version of Android APIs. You can leave the default Target
Location as C:\android-sdks unless you wish to change it. When you are ready, click on the
Next button to continue.
Note: If you do not see this screen, or if you accidentally Cancel this screen instead of
hitting the Next button, you will need to manually install the Android SDK. For
instructions on this process, please skip to the section later in this document titled
Manually Installing the Android SDK.
http://www.HomeschoolProgramming.com
Page 20
At this point, the Android SDK Manager will retrieve a list of possible packages that will be
downloaded during the installation process.
http://www.HomeschoolProgramming.com
Page 21
At this point, the SDK will be downloaded from the Internet and installed on your computer. This
process can take anywhere from a few minutes to 10 minutes or more, depending on the speed of
your Internet connection.
http://www.HomeschoolProgramming.com
Page 22
Notice the message that we have circled in red at the bottom of the screen. You may see more or
less than 3 packages installed based on your choices in the download screen.
Selecting the Android SDK Version
There are many different versions of the Android SDK. Each version will support a certain version
of the Android operating system. The version that you choose depends on which Android devices
you are targeting with your application.
In our course, we will use Android 2.3.3 (also called Gingerbread), which is currently in use on
many of the Android devices on the market. Applications developed against 2.3.3 will also run on
later versions of the operating system! However if you develop against the very latest operating
system (e.g. 4.0) then your applications may not run on existing phones with an earlier OS!
To download and install this version of the Android SDK, we will need to use the Android SDK
Manager from within your Eclipse software. To begin, click on the SDK Manager icon on the
Eclipse toolbar:
http://www.HomeschoolProgramming.com
Page 23
First, click on the Deselect All option at the bottom of the screen to remove any packages that
were pre-selected. Then find the entry named Android 2.3.3 (API 10). When you expand that
folder, find the box marked SDK Platform and then put a check in this box. Then click on
Install 1 Package.
http://www.HomeschoolProgramming.com
Page 24
Click on Accept or Accept All to agree to the license terms for the SDK and then click on the
Install button. The status of the download and installation will then appear at the bottom of the
Android SDK Manager window:
http://www.HomeschoolProgramming.com
Page 25
You can click the red X in the top-right corner to close this window.
Congratulations, you are now finished installing and configuring the Android SDK! You do not
need to complete any of the further sections in this document under Manually Installing the
Android Software Development Kit.
http://www.HomeschoolProgramming.com
Page 26
C:\android-sdk
C:\android-sdk\tools
To create a new directory in Windows Explorer, right-click on the parent directory such as C: and
select New Folder, and then type in the new folder name. Repeat the process by selecting the
android-sdk folder and adding a tools sub-folder name. When you are done your empty
directory structure should match the above image.
http://www.HomeschoolProgramming.com
Page 27
http://www.HomeschoolProgramming.com
Page 28
You can also select Window Android SDK Manager from the Eclipse menu if you close these
pop-ups accidentally.
Now, click Deselect All to clear any prior selections, and then drill down until you can check the
SDK Platform for the Android 2.3.3 (API 10) element. Then click Install 1 package.
http://www.HomeschoolProgramming.com
Page 29
At this point, the SDK will be downloaded from the Internet and installed on your computer. This
process can take anywhere from a few minutes to 10 minutes or more, depending on the speed of
your Internet connection.
NOTE: If you wish to develop for Android 4.0.3 or other operating system versions, you can
repeat this process and also install those SDKs.
http://www.HomeschoolProgramming.com
Page 30
Congratulations, you are now finished installing and configuring the Android SDK!
http://www.HomeschoolProgramming.com
Page 31