Java Reference
In-Depth Information
Figure 12-6.
The Installing Archives dialog box reveals the progress of downloading and in-
stalling each selected package archive.
InstallingArchivesmightpresentan“'adbkill-server'failed—runmanuallyifneces-
sary” message. This message refers to a platform tool named
adb
, which stands for
Android Debug Bridge (ADB).
ADB manages the state of an emulator instance or an Android-powered device. It
includes a server that runs as a background process on the development machine. The
installer must kill this process before installing platform tools. When this process isn't
running, you'll see the aforementioned message.
You'llprobablyencountertheADBRestartdialogbox,whichtellsyouthatapackage
dependentonAndroidDebugBridge(ADB)hasbeenupdated,andaskingyouwhether
you want to restart ADB now. At this point, it doesn't matter which button you
click—you would probably click Yes when the ADB server process had been running
before you started to install a package and you want to resume this process following
the installation.
Click Close on the Installing Archives dialog box to finish installation.
You should now observe the Android SDK and AVD Manager's Installed packages
pane displaying Android SDK Platform-tools, revision 6 and SDK Platform Android
2.3.3, API 10, revision 2 in addition to Android SDK Tools, revision 12. You should
also observe the following new subdirectories:
•
platform-tools
(in
android-sdk-windows
)
• android-10 (in
android-sdk-windows/platforms
)
platform-tools contains development tools that may be updated with each platform
release. Itstools include
aapt
(AndroidAsset Packaging Tool—view,create, andup-
date Zip-compatible archives (
.zip
,
.jar
,
.apk
); and compile resources into bin-
aryassets),theaforementioned
adb
tool,and
dx
(DalvikExecutable—generateDalvik
DEX code from Java “
.class
” files).
android-10
stores Android 2.3.3 data and
user interface-oriented files.
Tip
You might want to add
platform-tools
to your
PATH
environment vari-
able so that you can access these tools from anywhere in your filesystem.
Creating and Starting an AVD
AfterinstallingtheAndroidSDKandanAndroidplatform,you'rereadytostartdevel-
opingAndroidapps.Ifyoudon'thaveanactualAndroiddeviceonwhichtoinstalland