Java Reference
In-Depth Information
• Linux (tested on Ubuntu Linux, Lucid Lynx): GNU C Library (
glibc
) 2.11
orlaterisrequired.64-bitdistributionsmustbeabletorun32-bitapplications.
To learn how to add support for 32-bit applications, see the Ubuntu Linux
installation notes at
http://developer.android.com/sdk/in-
You'llquicklydiscoverthattheAndroidSDKisorganizedintovariouscomponents:
SDKtools,SDKplatformtools,differentversionsofthe
Android platform
(alsoknown
as the Android software stack), SDK add-ons, USB driver for Windows, samples, and
offline documentation. Each component requires a minimum amount of disk storage
space;thetotalrequiredamountofspacedependsonwhichcomponentsyouchooseto
install:
•
SDK Tools
:TheSDK'stoolsrequireapproximately35MBofdiskstoragespace
and must be installed.
•
SDK Platform Tools
:TheSDK'splatformtoolsrequireapproximately6MBof
disk storage space and must be installed.
•
Android platform
:EachAndroidplatform correspondstoaspecific versionof
Androidandrequiresapproximately150MBofdiskstoragespace.Atleastone
Android platform must be installed.
•
SDK Add-on
: Each optional SDK add-on (e.g., Google APIs or a third-party
vendor's API libraries) requires approximately 100MB of disk storage space.
•
USB Driver for Windows
:Theoptional USBdriverfortheWindowsplatform
requires approximately 10MB of disk storage space. When you're developing
on Mac OS X or Linux, you don't need to install the USB driver.
•
Samples
:EachAndroidplatform'soptionalappexamplesrequireapproximately
10MB of disk storage space.
•
Offline documentation
: Instead of having to be online to access the Android
documentation,youcanchoosetodownloadthedocumentationsothatyoucan
viewitevenwhennotconnectedtotheInternet.Theofflinedocumentationre-
quires approximately 250MB of disk storage space.
Finally, you should ensure that the following additional software is installed:
•
JDK 5, JDK 6, or JDK 7
: You need to install one of these Java Development
Kits(JDKs)tocompileJavacode.It'snotsufficienttohaveonlyaJavaRuntime
Environment(JRE)installed.Also,youcannotuseJava7languagefeaturesthat
rely on APIs newer than Java 5; the try-with-resources statement is unusable.
•
Apache Ant
:YouneedtoinstallAnt1.8orlatersothatyoucanbuildAndroid
projects.