Android SDK Setup - Linux

Prerequisites

See http://developer.android.com/sdk/requirements.html for detailed information.

SDK Installation

See http://developer.android.com/sdk/installing.html for detailed information.

  1. Download the SDK
  2. Extract the android-sdk-linux_86 folder to a location you'll remember.
  3. Add the location of android-sdk-linux_86/tools to the PATH environment variable.
    • In BASH: add export PATH=$PATH:<your_sdk_dir>/tools to ~/.bash_profile or ~/.bashrc
    • In TCSH: add setenv PATH <your_sdk_dir>/tools:$PATH to ~/.tcshrc

Eclipse Plugin Installation

See http://developer.android.com/sdk/eclipse-adt.html for detailed information.

Eclipse Galileo

  1. In Eclipse, click Help -> Install New Software...
  2. Click the Add... button in the top right.
    1. Name - Enter a name for the android plugin site. (i.e. "Android Plugin Site")
    2. Location - Enter https://dl-ssl.google.com/android/eclipse/
    3. Click OK.
  3. In the middle section, you should now see Developer Tools with a checkbox next to it.
    1. Click the checkbox and click Next.
  4. Click Next, then Finish.
  5. Close and re-open Eclipse. If a pop-up tells asks you about the location of the SDK, click OK.
  6. In the main menu, click Window -> Preferences.
  7. Click Android on the left-hand side.
  8. Enter the path to android-sdk-linux_86 into SDK Location. Click Apply.
  9. Click OK to close the dialog box.

Adding the Android 2.1 Platform

See http://developer.android.com/sdk/adding-components.html for detailed information.

  1. In Eclipse, click Window -> Android SDK and AVD Manager.
  2. Click Available Packages on the left-hand side.
  3. Click the little arrow under Sites, Packages and Archives to expand it.
  4. Check the box next to SDK Platform Android 2.1.
  5. Click Install Selected, then Install Accepted.
  6. After the installation is complete, click Close.
  7. Close the Android SDK and AVD Manager.

Creating an Android Virtual Device

  1. In Eclipse, click Window -> Android SDK and AVD Manager.
  2. Click Virtual Devices on the left-hand side.
  3. Click the New... button on the far-right side.
    1. Name - Give your virtual device a name, like Android2.1.
    2. Target - Select Android 2.1 - API Level 7.
  4. Click Create AVD.
  5. A pop-up will appear with the results. Click OK.
  6. Close the Android SDK and AVD Manager.

Finished

You're now ready to build and test HelloWorld!
(Start with the section "Create a New Android Project").

After that, check out the AndroidExample.

Topic revision: r3 - 2010-03-11 - 18:24:21 - Main.cerick3
 
Copyright 2016 The Board of Trustees
of the University of Illinois.webmaster@cs.uic.edu
WISEST
Helping Women Faculty Advance
Funded by NSF