Downloading and installing the Android SDK on Linux
First I downloaded the SDK here, then downloaded Eclipse Classic here. Threw them both in a folder on the desktop and extracted them. Opened a terminal, navigate to ~/Desktop/android sdk/android-sdk-linux/tools and type
./android
This starts the SDK Manager. You can install the updates and packages from here. It had the Android 4.0 ICS packages highlighted, so I just clicked on install 5 packages in the bottom right hand corner and let them download.
A dialog popped up saying a package that depends on ADB has been updated, and to restart ADB. Click yes and it started the ADB Server.
Next cd’ed back to the eclipse folder, and typed
./eclipse
and followed the instructions here. Here is a repost of that page.
Downloading the ADT Plugin
Use the Update Manager feature of your Eclipse installation to install the latest revision of ADT on your development computer.<>
Assuming that you have a compatible version of the Eclipse IDE installed, as described in Preparing for Installation, above, follow these steps to download the ADT plugin and install it in your Eclipse environment.
- Start Eclipse, then select Help > Install New Software….
- Click Add, in the top-right corner.
- 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/- Click OKNote: If you have trouble acquiring the plugin, try using “http” in the Location URL, instead of “https” (https is preferred for security reasons).
- In the Available Software dialog, select the checkbox next to Developer Tools and click Next.
- In the next window, you’ll see a list of the tools to be downloaded. Click Next.
- 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.
- When the installation completes, restart Eclipse.
Configuring the ADT Plugin
After you’ve successfully downloaded the ADT as described above, the next step is to modify your ADT preferences in Eclipse to point to the Android SDK directory:
- Select Window > Preferences… to open the Preferences panel (Mac OS X: Eclipse > Preferences).
- Select Android from the left panel.
You may see a dialog asking whether you want to send usage statistics to Google. If so, make your choice and click Proceed. You cannot continue with this procedure until you click Proceed.
- For the SDK Location in the main panel, click Browse… and locate your downloaded SDK directory.
- Click Apply, then OK.
Done! If you haven’t encountered any problems, then the installation is complete. If you’re installing the Android SDK for the first time, return to Installing the SDK to complete your setup.
I went with the defaults, accepted all the agreements, didn’t send usage statistics to google, and just installed the 4.0 branch, not the 2.1 stuff. Maybe I’ll add that later, 97% of phones sounds like a good choice.
Next I started following the instructions here. It looks like it downloads them again from within Eclipse, and I might have been able to skip the first SDK manager download. Should have read the instructions. Here is another repost of their page.
Install a Platform
To run the Hello World application, you need to install at least one Android platform in your SDK environment. If you have not already performed this step, you need to do it now.
To install a platform in Eclipse:
- In the Android SDK and AVD Manager, choose Available Packages in the left panel.
- In the right panel, expand the Android Repository list to display the components available for installation.
- Select at least one platform to install, and click Install Selected. If you aren’t sure which platform to install, use the latest version.
Create an AVD
To learn more about how to use AVDs and the options available to you, see Managing Virtual Devices.
In this tutorial, you will run your application in the Android Emulator. Before you can launch the emulator, you must create an Android Virtual Device (AVD). An AVD defines the system image and device settings used by the emulator.
To create an AVD:
- In Eclipse, select Window > Android SDK and AVD Manager.
- Select Virtual Devices in the left panel.
- Click New….The Create New AVD dialog appears.
- Type the name of the AVD, such as “my_avd”.
- Choose a target.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.
- Click Create AVD.
Opened the SDK manager from within Eclipse ( Window > Preferences > Android SDK manager) and checked Android 4.0 (API 14) and clicked Install 4 packages in the lower right hand corner. Created the AVD. Selected my AVD and started it. A working Android emulator! Excellent! Next I followed the rest of the page here. It takes for freaking ever to load. Started looking for a fix. See ya later, I’m off to make some apps! Cheers.





