Monday, August 13, 2012

ADT setup on Eclipse IDE on Ubuntu


Custom plugin for the Eclipse IDE, called Android Development Tools (ADT). 

If you need to install Eclipse, you can download it from http://www.eclipse.org/downloads/. 
Android recommend the "Eclipse Classic" version. 

Download the ADT Plugin
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 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).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.

Configure the ADT Plugin
After you've installed ADT and restarted Eclipse, you must specify the location of your Android SDK directory:

Select Window > Preferences... to open the Preferences panel (on Mac OS X, select 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. For the SDK Location in the main panel, click Browse... and locate your downloaded Android SDK directory (such as android-sdk-windows). Click Apply, then OK.

If you haven't encountered any errors, you're done setting up ADT and can continue to the next step of the SDK installation.

Source: http://developer.android.com/guide/faq/troubleshooting.html#installeclipsecomponents

Android on Linux (Ubuntu)


First download this package a .tgz. Unpack it to a safe location on your Ubuntu machine.

Package Name: Linux (i386) >> android-sdk_r20.0.1-linux.tgz

By default, the SDK files are unpacked into a directory named android-sdk-linux_x86.

Make a note of the name and location of the SDK directory on your system—you will need to refer to the SDK directory later, when setting up the ADT plugin and when using the SDK tools from the command line.

Troubleshooting Ubuntu If you need help installing and configuring Java on your development machine, you might find these resources helpful:o https://help.ubuntu.com/community/Javao https://help.ubuntu.com/community/JavaInstallation


  • Here are the steps to install Java and Eclipse, prior to installing the Android SDK and ADT Plugin.


1. If you are running a 64-bit distribution on your development machine, you need to install the   
    ia32-libs package using apt-get::apt-get install ia32-libs
2. Next, install Java: apt-get install sun-java6-jdk
3. The Ubuntu package manager does not currently offer an Eclipse 3.6 version for download,  
     so we recommend that you download  Eclipse from eclipse.org (http://www.eclipse.org/ 
     downloads/). A Java or RCP version of Eclipse is recommended.
4. Follow the steps given in previous sections to install the SDK and the ADT plugin.

The Android SDK separates tools, platforms, and other components into packages you can download using the Android SDK Manager. The original SDK package you've downloaded includes only the SDK Tools. To develop an Android app, you also need to download at least one Android platform and the latest SDK Platform-tools. You can update and install SDK packages at any time using the Android SDK Manager. If you've used the Windows installer to install the SDK tools, you should already have the Android SDK Manager open. Otherwise, you can launch the Android SDK Manager in one of the following way.


  • On Mac or Linux, open a terminal and navigate to the tools/ directory in the Android SDK, then execute android sdk.


When you open the Android SDK Manager, it automatically selects a set of recommended packages. Simply click Install to install the recommended packages. The Android SDK Manager installs the selected packages into your Android SDK environment. 

The following sections describe some of the available SDK packages and more about which ones we recommend you install.Once you have installed your packages, continue to the next page.























Figure Alpha. The Android SDK Manager shows the SDK packages that are available, already installed, or for which an update is available.

Source: http://developer.android.com/sdk/installing/index.html