Difference between revisions of "Android Development Environment Setup"

From Earlham CS Department
Jump to navigation Jump to search
(Setup the Emulator (Android Virtual Device))
 
Line 20: Line 20:
 
#Click New....
 
#Click New....
 
#The Create New AVD dialog appears.<br />Type the name of the AVD, such as "my_avd".
 
#The Create New AVD dialog appears.<br />Type the name of the AVD, such as "my_avd".
#Choose a target.<br />The target is the platform (that is, the version of the Android SDK, such as 2.3.3) you want to run on the emulator. For this tutorial, choose the latest platform that you have installed and ignore the rest of the fields.
+
#Choose a target.<br />The target is the platform you want to run on the emulator. Use Google API 2.2 rev 8
 
#Click Create AVD.
 
#Click Create AVD.

Latest revision as of 06:08, 26 March 2012

  1. Download Eclipse Classical and Install It - http://www.eclipse.org/downloads/
  2. Download the Android SDK - http://developer.android.com/sdk/index.html
    (Unarchive it and put it somewhere you remember)
  3. Download Java (If you are not up to date) - http://www.oracle.com/technetwork/java/javase/downloads/index.html
  4. Add ADT Plugin to Eclipse - http://developer.android.com/sdk/eclipse-adt.html#installing
    1. Start Eclipse, then select Help > Install New Software....
    2. Click Add, in the top-right corner.
    3. In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location: - https://dl-ssl.google.com/android/eclipse/
    4. Click OK
      Note: If you have trouble acquiring the plugin, try using "http" in the Location URL, instead of "https" (https is preferred for security reasons).
    5. In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
    6. In the next window, you'll see a list of the tools to be downloaded. Click Next.
    7. Read and accept the license agreements, then click Finish.
      Note: If you get a security warning saying that the authenticity or validity of the software can't be established, click OK.
    8. When the installation completes, restart Eclipse.
  5. Once Eclipse Restarts, you should get a popup window that welcomes you to the Android SDK. You will have two options "Install New" or "Existing".
    1. Click the second option and point the url to the location of the folder you download from Step 2.
    2. You will then proceed to install all the relevant API's. I suggest installing the tools and ALL the platforms (+4 GB) to complete the project.
  6. Restart Eclipse and the world of Android Development is yours.

Setup the Emulator (Android Virtual Device)

  1. In Eclipse, select Window > Android SDK and AVD Manager.
  2. Select Virtual Devices in the left panel.
  3. Click New....
  4. The Create New AVD dialog appears.
    Type the name of the AVD, such as "my_avd".
  5. Choose a target.
    The target is the platform you want to run on the emulator. Use Google API 2.2 rev 8
  6. Click Create AVD.