Document directory
- Step 1. Install JDK and Eclipse IDE
- Step 2. Download Android SDK starter package
- Step 3. Install ADT plugins for eclipse
- Step 4. Install Android SDK
Ubuntu (Latest Version: 12.04 LTs) is now the most popular GNU/Linux distribution on this planet; Android, the most popular operating system for mobile devices, both are rocking!
If you are a Android developer (or an absolute beginner)-who wants to use Ubuntu as the development platform or an Ubuntu user interested in developing Android applications-then this post might be helpful in
Setting up Android Development Environment on Ubuntu 12.04(. K. A precise pangolin ). although, the setup process is primarily explained for Ubuntu 12.04 but it may works seamlessly on other GNU/Linux systems such as Linux mint, Debian, opensuse, Fedora
Etc (and of course you wowould have to replaceApt-GetByYumIn RPM based distro ).
Setting up Android SDK on Ubuntu 12.04 lts
Since Android uses Java as the programming language so you must install Java Development Kit (JDK) such as openjdk (Open Source implementation), followed by the Eclipse IDE and ADT plugins required for Android development.
Step 1. Install JDK and Eclipse IDE
Although, you cocould install JDK or IDE separately (specially if you want specific version of JDK and eclipse, since Android SDK requires JDK 1.6 + and eclipse Helios 3.6.2 +) but eclipse-jdt package meets the above conditions so it wocould be much easier. open
A terminal and install Eclipse IDE as well as JDK, in one command (installeclipse 3.7 + openjdk 6 )-
sudo apt-get install eclipse-jdt
Step 2. Download Android SDK starter package
Download Android SDK starter package (from official site)
Step 3. Install ADT plugins for eclipse
Now, open Eclipse IDE and goHelp-> install new softwareThen click on
AddAnd enter the URL:
https://dl-ssl.google.com/android/eclipse/
Now select the developer tools, then a coupleNext, Followed
FinishWocould begin the download/installation process; next, restart the eclipse.
Step 4. Install Android SDK
Then openWindow-> preferencesAnd locate your android SDK starter package.
Then goWindow-> Android SDK Manager, Select the packages you want to install and click
Install [x] packages.
Packages to select?
Mandatory packagesAre SDK tools, SDK-platform tools and the SDK platform (2.1 (recommended if you want to target for 97% + Users) or 4.0.3 (the latest version at the time of writing this post) for which you want to write the application.
Select other packages depending on your need, althoughMost recommended packagesAre-documentation, code samples, USB driver, Google API, Google Analytics SDK, Google AdMob ads SDK (if you want to show ads in your app) etc. Don't select
Unnecessary packages-that you don't need now-otherwise it may take much time to download/install all those stuffs.
Wait, until the download/install process complete (it may take a lot of time if your Internet connection is not very fast ).
That's all. Now it's time start developing some cool applications for Android. Have fun!
Recommended book (s) for beginners
- Learning Android (O 'Reilly media) by Marko gargenta
- Programming Android (O 'Reilly media) by zigurd mednieks and others
Tweetpossibly related posts:
- Android SDK for Ubuntu 11.04/10.10/11.10
- How to install Eclipse IDE on Ubuntu 12.04
- How to install Eclipse IDE on Ubuntu 11.10
- How to install Eclipse IDE on Ubuntu 10.10
- How to install eclipse in Ubuntu 10.04