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.
- Download the SDK
- Extract the
android-sdk-linux_86
folder to a location you'll remember.
- 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
- In Eclipse, click Help -> Install New Software...
- Click the Add... button in the top right.
- Name - Enter a name for the android plugin site. (i.e. "Android Plugin Site")
- Location - Enter
https://dl-ssl.google.com/android/eclipse/
- Click OK.
- In the middle section, you should now see Developer Tools with a checkbox next to it.
- Click the checkbox and click Next.
- Click Next, then Finish.
- Close and re-open Eclipse. If a pop-up tells asks you about the location of the SDK, click OK.
- In the main menu, click Window -> Preferences.
- Click Android on the left-hand side.
- Enter the path to
android-sdk-linux_86
into SDK Location. Click Apply.
- 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.
- In Eclipse, click Window -> Android SDK and AVD Manager.
- Click Available Packages on the left-hand side.
- Click the little arrow under Sites, Packages and Archives to expand it.
- Check the box next to SDK Platform Android 2.1.
- Click Install Selected, then Install Accepted.
- After the installation is complete, click Close.
- Close the Android SDK and AVD Manager.
Creating an Android Virtual Device
- In Eclipse, click Window -> Android SDK and AVD Manager.
- Click Virtual Devices on the left-hand side.
- Click the New... button on the far-right side.
- Name - Give your virtual device a name, like
Android2.1
.
- Target - Select
Android 2.1 - API Level 7
.
- Click Create AVD.
- A pop-up will appear with the results. Click OK.
- 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