Wednesday, 24 August 2011 08:51

Setting up Android Development Environment

Written by 
Rate this item
(1 Vote)

Welcome to the first of many Android Development Articles. I will kick off with a tutorial for setting up your Android Dev Environment and will try to post new and interesting content each week. This will hopefully start up some interest in you guys to come up with different ideas for new applications that are missing on the Android Market and maybe we could organise an AMNZ team and work on some of them together in our spare time.

So... moving on to setting up the environment. This is what you need:

This is a very detailed tutorial, some of you might skip some steps because they are fairly straight forward. I just included everything in case anyone runs into any problems with the installation. Also, the versions used here might have been updated by now, this is just a tutorial I have put together around 2 months ago.

 

Environment/tools (versions used for installation as per this tutorial):

• Eclipse IDE for Java Developers (v3.7 Indigo)

• Java Platform (JDK 6 Update 26)

• Android SDK Tools, Revision 11

Step 1. Install Eclipse IDE

• Download Eclipse IDE for Java Developers from here http://www.eclipse.org/downloads/

 eclipse


• This is a zip file and does not require installation. Just copy the eclipse folder into your programs directory.

eclipse_install


Step 2: Install Java Platform (JDK 6 Update 26)

• Download the installation file from here http://www.oracle.com/technetwork/java/javase/downloads/index.html

java_jdk


Accept License Agreement

java_jdk_accept_license


Download appropriate file

java_jdk_dl


Install with default options

java_install


Step 3: Download the Android SDK Tools, Revision 11

Download the install package “installer_r11-windows.exe

android_sdk


Run the installer

o If you get an error saying Java JDK was not found, make sure the JAVA_HOME path is set in your Environment Variables to the correct path

android_sdk_error


- Go to Control Panel --> System

env_variables_1


- Go to Advanced tab --> Click Environment Variables

env_variables_2


- Make sure JAVA_HOME points to the correct Java JDK directory, if it doesn’t exist create a new variable and set it to point to your Java JDK directory.

env_variables_3


• Go back to the Android SDK setup, click Back then Next again and the JDK has been magically found now!

android_sdk_install_1


Install with default options (Next x3 then Finish)

android_sdk_install_2


Step 4: Configure Android SDK

• Launch SDK Manager.exe located in the Android SDK directory

sdk_setup_1


• Select Available Packages

o Under Android Repository select the following:

sdk_setup_2


o Under Third Party Add-ons expand Google Inc. and select the following:

sdk_setup_3


• Click Install Selected

sdk_setup_4


• Click Accept All (bottom right corner)

sdk_setup_5


• Click Install and wait a few hours until everything is downloaded and installed :)

Step 5: Configure Eclipse

• Select Help --> Install New Software...

eclipse_setup_1


• Press Add...

eclipse_setup_2

• Fill out the Add Site information
o Name: Android
o Location: https://dl-ssl.google.com/android/eclipse/
o Click OK

eclipse_setup_3


• After a connection is made and available tools are retrieved expand Developer Tools and select Android DDMS and Android Development Tools

eclipse_setup_4


• After clicking Next and agreeing to terms and conditions Eclipse will install the new software

o You may receive a Security Warning about unsigned content. Just click OK

eclipse_setup_5


• After installation you need to restart Eclipse

eclipse_setup_6


• After rebooting Eclipse we need to configure the directory of our Android SDK in Eclipse

• Go to Window --> Preferences

eclipse_setup_7


• Select Android from the left pane. After you select Android you will receive an error. That is because it is not setup yet. We are setting it up now.

eclipse_setup_8


• For the SDK Location, browse to where you installed the SDK.

eclipse_setup_9


• Click OK

• A dialog box will appear thanking you for using the Android SDK!

Read 508 times Last modified on Thursday, 22 September 2011 19:48
More in this category: Hello World or Hello Android? »

Add comment


Security code
Refresh

Copyright © 2012 Android Mobile New Zealand. All Rights Reserved.