Tuesday, February 8, 2011

Installing Android SDK on Ubuntu 10.10

 Android SDK install process..

Android developers need install android SDK to develop android application. It is easy to install on Windows platform but in Linux (Ubuntu) it is quite difficult for new developers. That's why I try to make it easy. Lets come on to install sdk on Ubuntu 10.10 or as like. 

Step 1: First you need to download SDK from http://developer.android.com/sdk/index.html. Download it from Linux (i386) row.

Step 2: After downloaded it try to extract to a specific location. You can do it by right clicking on folder -> Extract Here or by the following command.
 tar xzf  dir/android-sdk.tar
Where dir is the directory location of sdk and  android-sdk is the name of your sdk
Step 3: Now move it to the root directory. To do this run the following command from terminal.
sudo mv dir/android-sdk ~
Where android-sdk means the folder name of extracted Android-sdk.

Step 4: Now you are ready to install it.This is a simple case on executing. Go to the SDK folder/tools/android  and execute [SDK Folder]/tools/android  (either via the command line for by double-clicking it).


You may face some trouble to executing this. You can fix it by giving permission on it. To give permission on it- right click android -> Properties-> Permission
Select checkbox -> allow executing file as program ->ok

Now double click on android

The SDK and AVD Manager will now load and you simply selected the Available Packages option, selected everything in the right-hand pane and clicked on Install Selected. After a length installation process you done  this is your SDK/AVD Manager after the installation completed.
 
Step 5: Installing Android ADT (Android Developer Tool)

The first thing to do is to install the Android ADT (Android Developer Tool) plugin into Eclipse which you'll be happy to hear is a semi-automatic process.

    * Start Eclipse and select Install New Software  from the Help menu.
    * Click the Add button next to the Work With  dropdown list
    * Enter a suitable name for this resource, e.g. Android Developer Tools, and the following URL into the location: https://dl-ssl.google.com/android/eclipse
    * Click Ok

Eclipse will now search for the ADT plugins.

Select the Developer Tools checkbox (which will select the DDMS and Development Tools beneath it) and click next. After agreeing to the Licence Agreement (which of course you read first) click Finish and the installation will proceed.

You may get a security warning at this point because the packages are apparently unsigned but you just clicked OK to carry on. All things being equal you will be prompted to restart Eclipse.

Step 6: Final Step Installation
Finally you need to tell Eclipse where the Android SDK has been saved. To do this simply select Preferences from the Window menu, click on the Android option in the left hand pane and then the Browse button next to the SDK Location field. Navigate to the folder where you extracted the SDK and click OK. Click OK in the Preferences window and you are done.

Step 7: Make a project on eclipse selecting File | New you will see Android Project displayed and clicking it will display.

4 comments:

  1. Very helpful. Thank you! This was the best step by step for programming n00bs like me!

    ReplyDelete
  2. Perfect! You should do this for a living :)

    ReplyDelete
  3. thanks dude..this was helpful

    ReplyDelete
  4. Hi there, afteг reading this awеsome ρost і am as ωell glad
    to shаre my knowledgе here ωіth mates.
    my webpage: fap turbo expert guide

    ReplyDelete