How to Install Eclipse and Setup ADT

The Android market is booming, and anyone can create the next big app. All it takes is a good idea and some free development tools. Installing the tools is a fairly straightforward process. In just a few minutes you can be working on your...
Part 1 of 2:

Installing Eclipse

  1. How to Install Eclipse and Setup ADT Picture 1
    Install the Java Platform. Eclipse and ADT are built on the Java platform, so in order to run them you will need the latest version of the Java Development Kit (JDK). The JDK is available for free from the Oracle website. Make sure to download the version appropriate for your operating system.
    1. If you don't have a Java Runtime Environment (JRE) installed, Eclipse will fail to open.
  2. How to Install Eclipse and Setup ADT Picture 2
    Download the Eclipse Platform. Before you can install your Android-specific tools, you will need to download the Eclipse IDE, which is what the Android tools are built on top of. Eclipse is available for free from the Eclipse Foundation.
    1. For most Android developers, Eclipse Standard package will contain everything you need.
  3. How to Install Eclipse and Setup ADT Picture 3
    Unzip the Eclipse file. Eclipse will be downloaded as a ZIP file. Simply extract the ZIP file into a folder of your choosing, such as C:. The ZIP file contains a subdirectory called 'eclipse', so extracting the file into the C: drive will result in the folder 'C:eclipse'.
    1. Many users report issues with using Windows' built-in unzipping program. When extracting the file, use an alternative program such as 7-Zip or Winzip.
  4. How to Install Eclipse and Setup ADT Picture 4
    Create a shortcut to Eclipse. Since Eclipse isn't 'installed' in the traditional sense, you might want to create a shortcut to it so that you can quickly access the program from your desktop. This will also allow to easily specify the Java Virtual Machine (JVM) that you will be working with.[1]
    1. Right-click on eclipse.exe and select Send To. Click 'Desktop (create shortcut)'. This will create a new shortcut on your desktop that will point to the eclipse.exe file.
  5. How to Install Eclipse and Setup ADT Picture 5
    Specify the Java Virtual Machine. If you have multiple JVMs installed on your computer, you can set Eclipse to always use a specific one. This can prevent errors from occurring if your machine switches default JVMs through other programs.
    1. To specify your installation of the JDK, add the following line to your Eclipse shortcut, replacing the path with the location of your javaw.exe file:
      -vm C:pathtojavaw.exe[2]
Part 2 of 2:

Installing the ADT Plugin

  1. How to Install Eclipse and Setup ADT Picture 6
    Download and install the Android Software Developer Kit (SDK). This is available for free from the Android website. Select the 'Use an Existing IDE' option to download just the SDK. You can download an ADT bundle that includes Eclipse and comes preconfigured, but this method ensures that you have the latest version of Eclipse.
    1. After installing the SDK, the SDK Manager should open automatically. Leave it open for the next step.
  2. How to Install Eclipse and Setup ADT Picture 7
    Add packages to your Android SDK. Before you can begin using the SDK for development, you will need to add the packages you want to use to your Android SDK. In the SDK Manager, you should see a list of all the available packages for download. For basic development, be sure to grab the following:
    1. The most recent Tools package in the Tools folder.
    2. The most recent version of Android (This is the first Android folder in the list).
    3. The Android Support Library, which can be found in the Extras Folder.
    4. Click Install when finished. The files will be downloaded and installed.
  3. How to Install Eclipse and Setup ADT Picture 8
    Open Eclipse. You will be installing ADT from within the Eclipse program. If Eclipse won't start, ensure that you have specified your JVM (see previous section).
  4. How to Install Eclipse and Setup ADT Picture 9
    Install the ADT plugin. The ADT plugin will need to be downloaded within the Eclipse program directly from the Android developers' repository. You can quickly add that repository to your Eclipse installation.
    1. Click Help. Select Install New Software. This will open the Available Software screen, with a list of your available software from the repository you have selected.
  5. How to Install Eclipse and Setup ADT Picture 10
    Click the 'Add' button. This is located to the right of the 'Work with' field. Clicking this button will open the 'Add Repository' dialog box. Here you will enter the information to download the ADT plugin.
    1. In the 'Name' field, enter 'ADT Plugin'
    2. In the 'Location' field, enter 'https://dl-ssl.google.com/android/eclipse/'
    3. Click OK.
    4. Check the 'Developer Tools' box. Click Next to display the list of tools that will be downloaded. Click Next again to open the license agreements. Read them and then click Finish.
    5. You may get a warning that the validity of the software cannot be established. It is OK to ignore this warning.
  6. How to Install Eclipse and Setup ADT Picture 11
    Restart Eclipse. Once the tools have finished downloading and installing, restart Eclipse to complete the installation. Upon restarting, you will be greeted with the 'Welcome to Android Development' window.
  7. How to Install Eclipse and Setup ADT Picture 12
    Specify the location of the Android SDK. IN the Welcome screen, click 'Use existing SDKs' and then browse for the directory of the SDK you installed at the beginning of this section. Once you click OK, your basic ADT installation is complete.[3]
5 ★ | 1 Vote | 👨 1535 Views
« PREV POST
NEXT POST »