Setting up the Android Eclipse integration environment
Setting up the Android Eclipse integration environment
Installing the Android SDK
You can download the latest version of the Android SDK from the official website, Downloading the Android SDK. If you are installing the SDK on a Windows machine, you will find an installer_rXX windows.exe file. Just download and run this exe, which will launch the Android SDK Tools Installation Wizard to guide the entire installation. Therefore, just follow the instructions to install the Android SDK tools on your machine.
This tutorial assumes you will install the development environment on Windows 7.
Therefore, let's open the options in the Android SDK Manager, All Programs > Android SDK Tools > SDK Manager, which will pop up the following window:

Once the SDK Manager is open, you can start installing other required packages. By default, it will list 7 packages that need to be installed, but it is recommended to uncheck Android SDK documentation and SDK sample code to reduce installation time. Click the Install button in the next step, which will display the following dialog box:

If you agree to install these packages, select the "Accept All" radio button and click the "Install" button. Then, let the SDK Manager work on its own until all packages are installed. This may take some time, depending mainly on your network connection. When all packages are installed, close the SDK Manager using the button in the upper right corner.
Install Eclipse IDE
All examples in this tutorial are written in Eclipse IDE. Therefore, it is recommended to install the latest version of Eclipse on your machine.
Inhttps://www.eclipse.org/downloads/Download the latest Eclipse binary files to install. Once the installation package is downloaded, unzip it to a convenient location. For example, C:\eclipse on Windows, or /usr/local/eclipse on Linux, and set the appropriate PATH environment variable.
On a Windows machine, you can start Eclipse by executing the following command or simply by double-clicking eclipse.exe.
%C:\eclipse\eclipse.exe
On Linux, use the following command:
$/usr/local/eclipse/eclipse
After a successful installation, if everything goes well, the following result will be displayed:

Install the Android Development Tools (ADT) plugin
This step will help you install the Android Development Tools (ADT) plugin in Eclipse. Open Eclipse, select "Help" > "Install New Software". This will display the following dialog box:

Now use the "Add" button to add the ADT plugin, and enter https://dl-ssl.google.com/android/eclipse/ in the location. Then click "OK" to add this location. When you click "OK", Eclipse will start searching for plugins in the given location and finally list the found plugins.

Click "Select All" to select all listed plugins, and click the "Next" button to guide you through installing the ADT tools and other required plugins.
Create an Android Virtual Device

If the AVD is created successfully, it means your Android application development environment is ready. If you like, close the window using the button in the upper right corner. Finally, restart your computer. Once you complete the last step, you are ready to develop your first Android example. But before that, we will first look at some important concepts related to Android application development.