Wednesday, September 24, 2014

Configuring Android development Environment

In Windows:

Please follow the below steps:

1. Android is java based programming language. So to develop android applications, jdk must be installed in your system.

To see if jdk is installed or not in your system, open command prompt and type "java".
If you get below output, then jdk is not installed.
'java' is not recognized as an internal or external command,
operable program or batch file.

If jdk is not installed in your system, then go to "http://www.oracle.com/technetwork/java/javaee/downloads/java-ee-sdk-6u3-jdk-6u29-downloads-523388.html", download respective jdk and install it by doubling clicking on downloaded .exe file.

2. Go to android developer link: http://developer.android.com/sdk/installing/index.html
Download the "Eclipse ADT" bundle.
This bundle includes,
  • Eclipse
  • Android SDK(Software Development Kit)
  • ADT(Android Developer Tools)

3. Extract the downloaded ADT bundle and keep it in D: drive (you can extract it any drive)

4. When you extract, you get two subfolders: eclipse and sdk.
We need to set paths for "ddms" and "adb" applications, which will be available under ".../sdk/tools" and ".../sdk/platform-tools" respectively.

So add these two paths to "PATH" environment variable, with below in command prompt (change the paths accordingly, depending on the extracted path here)

set PATH=%PATH%;D:\softwares\adt-bundle-windows-x86_64-20140702\sdk\platform-tools;D:\softwares\adt-bundle-windows-x86_64-20140702\sdk\tools;

Thats it...You are done with the configuration of android development environment.

Now in the extracted folder, open "eclipse" folder and click on "eclipse" application, which opens the eclipse IDE, with predefined Android plugins.

No comments:

Post a Comment