• Skip to main content
  • Skip to secondary menu
  • Skip to primary sidebar
  • Skip to footer
  • Home
  • About
  • Projects
    • GStaticMap WP Plugin
  • Contact
  • Privacy Policy

Lorenz Blog

All About Web & Mobile Application Development

  • Featured Articles
  • Gadgets
    • Android
    • Blackberry
  • Programming
    • Android
    • PHP
    • Java Script
    • MySQL
    • Postgresql
    • Flex
    • Web
  • Software
    • Mac OS
    • Windows
    • Linux
  • Web
You are Here » Home >> Information Technology >> Programming >> Android >> How to Setup Android Application Development on Eclipse

How to Setup Android Application Development on Eclipse

March 2, 2010 by Lorensius Londa 57 Comments

Android SDK provides the tools and APIs necessary to begin developing applications on the Android platform using the Java programming language. Android offers a custom plugin for the Eclipse IDE, called Android Development Tools (ADT), that is designed to give you a powerful, integrated environment in which to build Android applications.

Android 2.1 on Emulator

This tutorial is intended for new developers that want to start developing Android applications using Eclipse IDE. To start develop, you have to install Java platform (JDK)  first and then  install the Eclipse,  Android SDK and the  Android Development Tool (ADT) plugin for Eclipse.

Download and Install JDK

Download and install the latest JDK (JDK 1.6 Update 18) from JDK download page

Download and Install Eclipse IDE

Download and install Eclipse Classic 3.5 (Galileo) from Eclipse download page. You can also use the  Java or RCP version of Eclipse.

Download and Install Android SDK Starter Package

The Android SDK starter package includes only a single component, the latest version of the SDK Tools. Included in that component is a tool called Android SDK and AVD Manager that you can use to download other components from the SDK repository site.

  • Download the latest Android SDK  starter package  from the SDK download page.
  • Unpack the archive to a suitable location on your machine. By default, the SDK files are unpacked into a directory named  android-sdk-<machine-platform> . For example, on Windows platform the directory will be android-sdk-windows.
  • Android SDK
    Android SDK

Add Android Platforms to Your SDK

To add one or more Android platforms (for example, Android 1.6 or Android 2.1) to your SDK, use the Android SDK and AVD Manager, included in the SDK starter package. It is recommended  to download multiple platforms, so that you can build your application on the lowest version you want to support, but test against higher versions that you intend the application to run on.

  • Launch the Android SDK and AVD Manager on Windows by executing SDK Setup.exe at the root of the SDK directory. On Mac OS X or Linux, execute the android tool in the /tools/ folder.
  • On Available Packages menu, select the platforms to download (1.1 to 2.1).
  • If you find error on HTTP SSL while fetching the repository url , try to use http instead of https by checking the Force https://… sources to be fetched using http://… option on Settings menu.
  • Click Install Selected and then select Accept All to accept selected packages.
  • Click Install Accepted button to start download and install the selected packages.

Download and Install ADT Plugin

To install  the ADT Plugin, you can take advantage of the Eclipse remote update feature. By setting up a remote update site, you can easily download, install, and check for ADT updates. Alternatively, you can download the latest ADT to your development computer as a local site archive.

  • Launch Eclipse, then select Help –> Install New Software.
  • In Available Software dialog, click Add
  • Enter a name for the remote site (ex: Android Plugin) in the Name field and in the Location field, enter this URL:
    https://dl-ssl.google.com/android/eclipse/
    and then click OK. If you have trouble acquiring the plugin, you can try using ‘http’  instead of  ‘https’  in the URL.
  • Select the checkbox next to Developer Tools, which will automatically select the nested tools Android DDMS and Android Development Tools and then click Next.
  • On the next dialog, click Next to read and accept the license agreement and install any dependencies, then click Finish.
  • Restart Eclipse
  • To check whether the ADT has been installed correctly, try to create a new project by select File > New > Project., you shoud find Android Project listed on project wizard.
Update March 12, 2010:
On early March 2010, Android team has released SDK Tools Revision 5 (r5) that fixes problem on fetching repository using SSL (https). It is also highly recommended to use ADT Plugin version 0.9.6  because SDK Tools r5 is designed for use with ADT 0.9.6 and later.
Facebooktwitterredditpinterestlinkedinmailby feather

Related posts:

  1. Android SDK Tools Revision 5 (r5) Fixes Issue on Fetching Repository URL using SSL (HTTPS)
  2. How to Sign Android APK or Zip Files
  3. Eclipse Issue on Os X Yosemite – To open “Eclipse” you need to install the legacy Java SE 6 runtime
  4. How to Setup Gmail 2-Step Verification With Android

Filed Under: Android, Featured Articles, Information Technology, Programming Tagged With: Android, android adt, android applications, android development, android device, android IDE, android on eclipse, android phone, android programming, android tool, eclipse

About Lorensius Londa

Passionate web and mobile application developer. Co-founder of TRUSTUDIO, loves programming, Android, aviation, travelling, photography, coffee and gym mania.

Reader Interactions

Comments

  1. SM says

    March 3, 2010 at 2:18 am

    Helpful tutorial. Thanks

    Reply
  2. Lesya says

    March 3, 2010 at 3:13 am

    Thanks. It was easy to understand this material. I am waiting for new information about this theme.

    Reply
  3. Mutia says

    June 17, 2010 at 10:33 am

    i’m not to familiar with eclipse, can i use netbeans rather than eclipse?

    Reply
  4. becker666 says

    June 20, 2010 at 6:26 am

    IS the 3.5 Galileo working for real ??? I;’m getting all kinds of weird error and googling around they seem to recommen t use 3.4 instead

    Reply
    • lorenz says

      June 20, 2010 at 6:51 am

      It works well for me so far, no problems found so far.

      Reply
      • Nitin says

        July 10, 2012 at 12:28 am

        How can i use eclipse for developing blackberry java enabled application?

        Reply
  5. Sam Hobbs says

    July 7, 2010 at 10:41 pm

    I have Windows 7 64-bit and I attempting to get set up for Android development.

    Should I install the 64-bit JDK? When I was at the JDK download site, it selected the non-64-bit JDK; the 64-bit was listed but not selected. I assumed it did that for a good reason, but I would prefer guidance about that.

    Reply
    • lorenz says

      July 7, 2010 at 10:48 pm

      Choose 64-bit JDK to optimize your 64 bit machine. It should be more faster.

      Reply
      • Sam Hobbs says

        July 7, 2010 at 11:56 pm

        Thank you, Lorenz, for your fast reply; I will uninstall the 32-bit JDK and install the 64-bit JDK.

        Reply
  6. Sam Hobbs says

    July 8, 2010 at 12:02 am

    Your instructions say “Download and install Eclipse Classic 3.5 (Galileo)”. I installed Eclipse Classic Version 3.6.0 (file eclipse-SDK-3.6-win32-x86_64.zip). Should that work? I assume the only reason why your instructions say to use 3.5 is that it was written before 3.6 was available but I want to make sure.

    Reply
    • lorenz says

      July 8, 2010 at 3:49 am

      Yes it should work. You’re right, this tutorial was written before eclipse 3.6 released 🙂

      Reply
      • Sam Hobbs says

        July 9, 2010 at 6:12 am

        Thank you, Lorenz.

        In the Google Groups Android Beginners group I asked about Eclipse 3.6; they said there is a bug in 3.6 so we should not use 3.6 until there is a fix or workaround.

        I did get the Android SDK installed, at least as far as your instructions took me. Thank you for the help, it works.

        Reply
        • lorenz says

          July 9, 2010 at 11:54 am

          Okay you’re welcome & thanks for the info..:-)

          Reply
  7. Nova Mary says

    August 2, 2010 at 12:45 pm

    As I follow this tutorial an error occur ie “https://dl-ssl.google.com/android/eclipse/” is duplicate location.How can I solve this

    Reply
    • lorenz says

      August 2, 2010 at 10:24 pm

      Delete entry https://dl-ssl.google.com/android/eclipse/ from the list.

      Reply
      • Nova Mary says

        August 3, 2010 at 1:43 pm

        Thanx Lorenz. But I solve it using another link “http://dl-ssl.google.com/android/eclipse/site.xml

        Reply
      • karlM says

        September 1, 2011 at 4:03 pm

        how do i do it?…

        Reply
      • obie says

        January 17, 2012 at 8:05 am

        pls I cannot figure out how to delete from the list and its really frustratingtbh because I know it would be something very simple. please help

        Reply
        • Anthony says

          January 22, 2012 at 7:46 pm

          @karlM, @obie:
          Sounds like you may have already registered the https://dl-ssl.google.com/android/eclipse location.
          You can check if this is the case in Eclipse by going to Window/Preferences, expanding the Install/Update category and clicking on Available Software Sites.
          You’ll probably find https://dl-ssl.google.com/android/eclipse is already listed there.

          Reply
    • Abzal says

      May 25, 2012 at 9:29 pm

      Thank you very much!)It is working!

      Reply
  8. Nova Mary says

    August 19, 2010 at 3:13 pm

    How can I remove an application from the emulator.

    Reply
    • Ton says

      January 27, 2012 at 3:17 pm

      You don’t have to delete the site. When you are in the dialog for ‘Install new software’ you will find a link below the dropdown with site call ‘Available software sites’. When you click that you will be able to enable the destination by adding a checkmark in front of it. After that it will be available in the dropdown for use.

      Reply
  9. Nova Mary says

    August 31, 2010 at 2:24 pm

    How can an android application say , a notepad application, be removed.

    Reply
    • ravi says

      December 23, 2011 at 4:37 pm

      in emulator
      click on Setting>manage application>click on application>uninstall the application u can remove it

      Reply
  10. Indy John says

    September 5, 2010 at 10:13 am

    Lorenz,

    Very nice tutorial. I have a 64-bit Windows 7 machine. I installed the jdk1.6.0_21, android-skd_r06-windows and ecllipse-jee-helios-win32_64. I am able to perform the steps you indicate seemingly without error. Yet when I restart eclipse and open File| New | Project, the Android choice does NOT appear. Any help would be appreciated. Thank you.

    Reply
    • lorenz says

      September 5, 2010 at 1:22 pm

      Have u installed adt plugin? as far as i know, there is a bug in eclipse 3.6 (helios). Recommended version is 3.5 (galileo)

      Reply
      • Indy John says

        September 5, 2010 at 8:24 pm

        Everything else I’ve seen on the net agrees with what you say. I’ll remove helios and install galileo. I’ll let you know how that goes. Cheers.

        Reply
  11. zuliady azwin says

    September 13, 2010 at 8:14 pm

    Hello dude,

    nice tutorial about instalation.

    i’m using mac for develop the android apps, and hope have similiar instalation mode 🙂

    Best regards,

    Zuliady Azwin

    Reply
  12. Maneesh says

    September 17, 2010 at 2:06 pm

    I wanted to know can i download the android sdk platform 2.1 api revised 2 manually since for the internet connection i use mobile and it is very slow…
    plz help i am not able to download it fast…

    Reply
  13. lorenz says

    September 17, 2010 at 10:44 pm

    As far as i know, the sdk platform can only be downloaded from AVD.

    Reply
  14. Diego says

    September 23, 2010 at 2:15 am

    Excelent tutorial!!!

    Reply
  15. MN says

    November 16, 2010 at 1:12 pm

    I am now working with android 1.6.How can I update it to Android 2.2.I tried it using ‘Available Packages’ ,but its not working but resulting an Unzip failed error.How can I solve it.

    Reply
  16. raj says

    January 13, 2011 at 4:09 pm

    iam a beginner to android application i dont know how to create and run android application plz help me

    Reply
  17. Praveen says

    April 18, 2011 at 9:58 am

    Thank You! Your article saved lot of time.

    Reply
  18. Me says

    June 1, 2011 at 7:23 am

    Too bad java sucks and such BS shouldn’t be necessary, like when you install Visual Studio and everything you need to develop web/desktop/phone/xbox applications all from one easy install.

    Reply
  19. Pinky Dhirai says

    July 20, 2011 at 1:53 am

    Hi Lorenz,

    Thanks a lot for publishing such an informative tutorial. I am new to Android Programming and have been assigned a project on this just recently. I dint know where to start but your detailed steps helped me with setting up the environment to start with Android Programing. Thanks once again.

    Just one question, when I launch the Android SDK and AVD manager, in the Available Packages section, you have mentioned to download 1.1 and 2.1. However, I can see SDK platforms starting from 1.5 to 3.2 in Android Repository and some third Party Add-ons as well. Can you please tell me which platform i need to download to start with and whether to download the Third Party Add-ons?

    Also, do you have any tutorial which can tell me how to create a sample Andorid web application in Eclipse?

    Awaiting for your response.

    Thanks,
    Pinky

    Reply
    • lorenz says

      July 20, 2011 at 12:39 pm

      Hello Pinky, thanks and you’re welcome.

      At least you have to download one sdk platform, google apis (if you have plan to include map on your app), sdk samples and docs. I suggest you download the latest gingerbread sdk (code number 10). As beginner, i suggest you to start with this dev guide: http://developer.android.com/guide/basics/what-is-android.html , learn how the app work on android environment (it’s lifecycle). Sample codes and tutorial can be found here: http://developer.android.com/resources/browser.html?tag=tutorial

      Reply
  20. Vinil says

    July 28, 2011 at 12:16 am

    I am working with Eclipse Helios.Can it work properly with it? or i need eclipse Galileo?

    Reply
    • lorenz says

      July 31, 2011 at 9:18 pm

      Hi Vinil,

      Last time i used Helios it didnt work properly. Galileo is very stable, i’m still using it right now.

      Reply
  21. ahsan says

    September 15, 2011 at 2:20 am

    Great effort …. keep it up!

    Reply
  22. Damitha says

    September 21, 2011 at 12:09 pm

    Really helpful. keep up the good work.

    Thanks alot.

    Reply
  23. ML says

    October 14, 2011 at 7:07 pm

    I just wanted to thank you, you’ve saved me a lot of time.

    Reply
    • lorenz says

      October 19, 2011 at 10:25 pm

      You’re welcome ..;)

      Reply
  24. venkee says

    December 31, 2011 at 1:40 am

    i’m new in adroid, how to start first application eclipse

    Reply
  25. RStar says

    January 7, 2012 at 4:57 pm

    After selecting….ADT Plugins, when I click on Next, I get this error…”Cannot complete the install because one or more required items could not be found.
    Software being installed: Android Development Tools 16.0.1.v201112150204-238534 (com.android.ide.eclipse.adt.feature.group 16.0.1.v201112150204-238534)
    Missing requirement: Android Development Tools 16.0.1.v201112150204-238534 (com.android.ide.eclipse.adt.feature.group 16.0.1.v201112150204-238534) requires ‘org.eclipse.wst.sse.core 0.0.0’ but it could not be found”

    What do I do, in this case?

    Reply
    • lorenz says

      January 12, 2012 at 10:37 pm

      Hi that because your eclipse version doesn’t match the ADT 16.0.1 requirement. ADT 16.0.1 requires Eclipse 3.6.0 and newer (http://developer.android.com/sdk/eclipse-adt.html)

      Reply
  26. jo_san says

    January 16, 2012 at 5:09 am

    hai,

    very nice work… thanks… i have a problem in configuring ADT with Eclipse…. the ADT packages r installed and Eclipse also restarted successfully… but when i am trying to open a new project in Android i could’nd find any “ANDROID” group in new projects Wizard…. expecting a better solution from u….

    Reply
  27. Tunji says

    March 19, 2012 at 1:34 am

    I am using eclipse helios and its working fine. Thanks for the tutorial.

    Reply
  28. Java Srilankan Support says

    April 5, 2012 at 12:10 pm

    Setup Android Application Development Environment on Eclipse which is the first step of Android Application Development. In this tutorial you will find how to set up your Android development environment with Eclipse step by step

    Setup Android Application Development Environment on Eclipse

    Reply
  29. hamza says

    May 23, 2012 at 11:03 pm

    people what do you think sdk or jdk which one is better

    Reply
  30. Anuj Kumar says

    July 14, 2012 at 5:58 pm

    I love this post. It make android setup very easy for me.

    Great efforts done…

    Reply
  31. Mujadad Rao says

    July 28, 2012 at 4:06 am

    Please lorenz help me out! I don’t know anything about programming. I am new to this. I downloaded Eclipse Classic v4.2. Most of youtube video tutorials says to download Eclipse IDE for Java Developers.. Is it okay to use Eclipse Classic???

    Reply
    • lorenz says

      July 30, 2012 at 9:59 pm

      Yes thats oke..i always use the classic version ;).

      Reply
  32. Android Application Development says

    May 20, 2013 at 8:25 pm

    It was really nice and easy to understand tutorial very helpful to beginners.Just looking forward for your next post.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

About Me

A husband, father of two, passionate software developer, diy lover and home baker who loves to learn new things. Read More…

  • Facebook
  • GitHub
  • Google+
  • Instagram
  • Twitter
  • YouTube

Featured Articles

How to Setup MQTT Server Using Mosquitto and Libwebsocket on Freebsd

Blue Bamboo P25 Printer Android Demo Application With Source Code

Simple JSON RPC Client for Android

How to Send Message to Google Cloud Messaging (GCM) Server Using JSON and PHP

Footer

Recent Comments

  • Aditya Dabas on About
  • Ayten Göksenin Barutçu on How to Make Android Map Scrollable Inside a ScrollView Layout
  • mang jojot on About
  • Hussain on How to Programmatically Scan or Discover Android Bluetooth Devices

Recent Posts

  • How to Fix Blank Screen on WordPress Add/Edit Post Page
  • How to Programmatically Restart the ESP32 Board
  • How to Get Hardware Info of ESP32
  • How to Setup MQTT Server Using Mosquitto and Libwebsocket on Freebsd

Latest Tweets

  • @tricahyono_bowo @infobandung @infobdg Wah kejauhan om 355 days ago
  • Wilujeng enjing sadayana..Mohon info tempat powder coating dan sandblasting yg recommended di Bandung dunk @infobandung @infobdg359 days ago

Copyright © 2023 · Magazine Pro on Genesis Framework · WordPress · Log in