The Android Software Development Kit (SDK) allows developers to create applications for the Android platform. The Android SDK includes sample projects with source code, development tools, an emulator, and required libraries to build Android applications which are written using the Java programming language.
Much of the info in this guide comes from the documentation on the Android Developers site. Follow this quick guide to successfully install Android SDK on your computer. If you are new to it, it is a bit complicated to install compared to your usual program. However if you are good in following instructions, it’s as easy as A-B-C.
The process involves four general steps:
For instructions specific to your particular operating system, hop over to the last section entitled “Specific Instructions According to OS.
Before anything else, see to it that your computer meets the minimum system requirements. Specifically, you might need to install the Java Development Kit (JDK), if you don’t have it yet.
The following outlines the system and software requirements for developing Android applications using the Android SDK.
Eclipse Integreted Development Environment (IDE)
Other development environments or IDEs
If Java Development Kit (JDK) is already installed on your development computer, make sure that it meets the version requirements listed above. In particular, note that some Linux distributions may include JDK 1.4 or GNU Compiler for Java, both of which are not supported for Android development.
The SDK Starter Package is not a full development environment. It only includes the core SDK Tools, which you can use to download the rest of the SDK components (such as the latest Android platform).
To get the latest version of the SDK starter package, go to the Android SDK download page and download the package for your machine’s operating system.
Android offers a custom Eclipse IDE plugin called Android Development Tools (ADT) designed to give you a powerful, integrated environment in which to build Android applications. It extends the capabilities of Eclipse to let you quickly set up new Android projects, create an application UI, debug your applications using the Android SDK tools, and even export signed (or unsigned) APKs in order to distribute your application. In general, developing in Eclipse with ADT is a highly recommended approach and is the fastest way to get started with Android.
If you will be developing in Eclipse with the Android Development Tools (ADT) Plugin, follow the steps to download the ADT here.
Otherwise, you do not need to install Eclipse or ADT. Instead, you can directly use the SDK tools to build and debug your application.
The last step in setting up your SDK is using the Android SDK and AVD Manager (a tool included in the SDK starter package) to download essential SDK components into your development environment.
You can launch the Android SDK and AVD Manager in any of the following ways:
tools/directory in the
androidon the terminal window and press Enter.
To download components, use the graphical UI of the Android SDK and AVD Manager to browse the SDK repository and select new or updated components (see Figure 1). The Android SDK and AVD Manager installs the selected components in your SDK environment. For information about which components you should download, see Recommended Components.
By default, there are two repositories of components for your SDK: Android Repository and Third-party Add-ons.
The Android Repository offers these types of components:
The Third-party Add-ons provide components that allow you to create a development environment using a specific Android external library (such as the Google Maps library) or a customized (but fully compliant) Android system image. You can add additional add-on repositories by clicking Add Add-on Site on the Android SDK and AVD Manager window.
The SDK repository gives you a lot of downloadable components for your Android SDK, but do you need to download all of them? To answer that, you can refer to the following table which describes the recommended downloads for a basic, recommended, or full development environment:
|Basic||SDK Tools||If you’ve just installed the SDK starter package, then you already have the latest version of this component. The SDK Tools component is required to develop an Android application. Make sure you keep this up to date.|
|SDK Platform-tools||This includes more tools that are required for application development. These tools are platform-dependent and typically update only when a new SDK platform is made available, in order to support new features in the platform. These tools are always backward compatible with older platforms, but you must be sure that you have the latest version of these tools when you install a new SDK platform.|
|SDK platform||You need to download at least one platform into your environment, so that you will be able to compile your application and set up an Android Virtual Device (AVD) to run it on (in the emulator). To start with, just download the latest version of the platform. Later, if you plan to publish your application, you will want to download other platforms as well, so that you can test your application on the full range of Android platform versions that your application supports.|
|Recommended (plus Basic)||Documentation||The Documentation component is useful because it lets you work offline and also look up API reference information from inside Eclipse.|
|Samples||The Samples components give you source code that you can use to learn about Android, load as a project and run, or reuse in your own app. Note that multiple samples components are available — one for each Android platform version. When you are choosing a samples component to download, select the one whose API Level matches the API Level of the Android platform that you plan to use.|
|Usb Driver||The Usb Driver component is needed only if you are developing on Windows and have an Android-powered device on which you want to install your application for debugging and testing. For Mac OS X and Linux platforms, no special driver is needed.|
|Full (plus Recommended)||Google APIs||The Google APIs add-on gives your application access to the Maps external library, which makes it easy to display and manipulate Maps data in your application.|
|Additional SDK Platforms||If you plan to publish your application, you will want to download additional platforms corresponding to the Android platform versions on which you want the application to run. The recommended approach is to compile your application against the lowest version you want to support, but test it against higher versions that you intend the application to run on. You can test your applications on different platforms by running in an Android Virtual Device (AVD) on the Android emulator.|
Once you’ve installed at least the basic configuration of SDK components, you’re ready to start developing Android apps.
This section provides OS-specific instructions for installing the Android SDK.
The package android-sdk is included in AUR. No further changes are needed.
emerge dev-util/android-sdk-update-managerand pressing Enter.
/opt/android-sdk-update-manager/tools/androidon the terminal and pressing Enter.
Installing the Android SDK
unzip Downloads/android-sdk_r09-mac_86.zip -d~/bin
Installing the Eclipse IDE on Mac OS X
tar -zxvf Downloads/eclipse-java-helios-SR1-macosx-cocoa-x86_64.tar.gz
Reference: Android Developers