This tutorial is to explain how to Setup Android SDK with Eclipse. You may find many website which explains how to setup android development in eclipse and i tried to make the tutorial simple by adding images to it. Before we move forward with the tutorials we must know the system requirement Android SDK and they are listed below.
System Requirement For Android SDK :
Operating Systems
- Windows XP (32-bit), Vista (32- or 64-bit), or Windows 7 (32- or 64-bit)
- Mac OS X 10.5.8 or later (x86 only)
- Linux (tested on Ubuntu Linux, Lucid Lynx)
- GNU C Library (glibc) 2.7 or later is required.
- On Ubuntu Linux, version 8.04 or later is required.
- 64-bit distributions must be capable of running 32-bit applications.
1. Eclipse 3.6.2 (Helios) or greater
Note: Eclipse 3.5 (Galileo) is no longer supported with the latest version of ADT.
2. Eclipse JDT plugin (included in most Eclipse IDE packages)
3. JDK 6 (JRE alone is not sufficient)
4. Android Development Tools plugin (recommended)
5. Not compatible with Gnu Compiler for Java (gcj)
Other development environments
1. JDK 6 (JRE alone is not sufficient)
2. Apache Ant 1.8 or later
3. Not compatible with Gnu Compiler for Java (gcj)
Note: Some Linux distributions may include JDK 1.4 or Gnu Compiler for Java, both of which are not supported for Android development.
The above are the System Requirement for Android SDK and lets move on with the tutorial. Follow the below given steps to Setup Android SDK in Eclipse.
Step 1 : Download Android SDK And Unzip It
First step is to download Android Software Development Kit(SDK) and unzip the file to your specified folder. You can download Android SDK from Android SDK download page. After the download is finished you need to open the zip file and unzip the file to any of your specific folder.
Note : while unzip SDK file choose a folder location where the file wont get deleted because this file will be used by eclipse later.
Step 2 : Download Eclipse And Run Eclipse IDE
Now you need to run Eclipse to install Android SDK and if you don't have Eclipse IDE in your system then you can download Eclipse by Clicking Here. You can download latest version of Eclipse IDE from the given website and the website will look like below given image.
After finishing the download of Eclipse IDE, Unzip the file and open the unzipped folder and run the Eclipse.exe file. The below image will occur and Eclipse IDE will open.
You need to select a workspace where all your projects and related files will get stored. Click Browse as shown in the blow image and select a folder of your choice where all your files and project will get stored.
3. Installing Android Development Tool (ADT) Plugin To Eclipse :
Once you open Eclipse and set Workspace for it then you can install Android Development Tool (ADT) plugin using few simple steps as shown below.
i) Start Eclipse and select Help -> Install New Softwares... as shown in the below image.
iii) Add Name as Android and Location as https //dl-ssl.google.com/android/eclipse/ in Add Repository window and press OK .
iv) Now you will see the Developer Tools in the Install window.
v) Press Select All and press Next button.
vi) Now you need to select file location and click Next button to install SDK.
vii) In Choose Packages To Install window select Accept All and click Install button.
In the Android SDK Manager window, you can see a list of Android versions available and Extra tools. You can download and use any Android version but its better if you start using Android 2.1 which is the basic version that support most of the Android devices.
Step 4: Configuring Android SDK
Now after downloading Android SDK and installing Android Development Tool plugin next step is to Configuring Android SDK. Follow the below steps
i) Select Window -> Preferences in Eclipse.
ii) In SDK Location select the folder location where you have saved the SDK file which we unzip on Step 1 and we need to select a SDK from it and press Apply button and then finally click OK button.
Step 5 : Creating Your Android Virtual Device
i) Lastly we need to create the Android Virtual Device that will be our Android Emulator through which we can run and test our Android Projects in our PC.
ii) You can create Android Virtual Device by clicking on the icon on Eclipse as shown in the below or you can select it by clicking on Window -> AVD Manager.
iii) Now Android Virtual Device Manager window will open and there you can see a New button on the right side. Click the New button.
iv) Create new Android Virtual Device Window will Appear and it has Name, Target and other options in it.
v) In Name write any name which you would like to use and in Target select the Android Version which you would like to use in your Android Emulator and leave the other options as it is and finally click on Create AVD.
Now you can start programming Android applications and when you run the application, the application will be executed in Android Emulator.
No comments:
Post a Comment