Setting up Android SDK/ADT Bundle on Fedora

This guide shows a step-by-step method on how to quickly and easily get started with Android Application development by installing and configuring the android development toolkit (ADT) bundle on Fedora 20.

I have tested this method on Fedora 20. It may be similar for the following Linux distros as well

  • Fedora 16 and above
  • CentOS 6 and above
  • Red Hat (RHEL) 6 and above

Download the ADT bundle

Method 1

Download the ADT bundle according to your architecture from

Method 2

Download using wget by typing the following command

## 32-bit ##
wget -c 

## 64-bit ##
wget -c

Setting up Oracle JDK

Most of the android stuffs do not work properly with Openjdk Java and it is advisable to use the Oracle/Sun JDK.
Here is a guide to install Oracle/Sun Java JDK

Setting up ADT bundle

You can extract the downloaded file anywhere you want. I have kept my ADT bundle at “/Android Dev”. You can extract there by typing the following in the terminal.

NOTE : Change “defoliate” in the last statement with your username.

## 32-bit ## 
sudo mkdir /"Android Dev" 
sudo cp /"Android Dev" 
cd /"Android Dev" 
sudo unzip 
sudo rm
sudo chown -R defoliate:users /"Android Dev"

## 64-bit ## 
sudo mkdir /"Android Dev" 
sudo cp /"Android Dev" 
cd /"Android Dev" 
sudo unzip 
sudo rm
sudo chown -R defoliate:users /"Android Dev"

If you have 64-bit systems and you installed the 64-bit version of the ADT Bundle, you will need to install some 32-bit packages as well, because Android SDK is 32-bit .
For installing these 32-bit packages, enter the following in terminal

## Only for 64-bit systems ##
sudo yum install glibc.i686 glibc-devel.i686 libstdc++.i686 zlib-devel.i686 ncurses-devel.i686 libX11-devel.i686 libXrender.i686 libXrandr.i686

Launching ADT Eclipse Bundle from Terminal

Make a symbolic link to adt eclipse so as to distinguish it from normal eclipse. Also we can make a symbolic link to the sdk manager for easy use.

## ADT Eclipse ##
sudo ln -s /"Android Dev"/adt-bundle-linux*/eclipse/eclipse /"Android Dev"/adt-bundle-linux*/eclipse/adt

## SDK Manager ##
sudo ln -s /"Android Dev"/adt-bundle-linux*/sdk/tools/android /"Android Dev"/adt-bundle-linux*/sdk/tools/sdk

Now we need to add Android SDK and ADT Eclipse into PATH environment variable. For this we need to edit the ~/.bashrc file. For editing that file, enter the following into the terminal.

sudo gedit ~/.bashrc

Add the following lines into that file

PATH=$PATH:/"Android Dev"/sdk:/"Android Dev"/sdk/tools:/"Android Dev"/sdk/platform-tools:/"Android Dev"/eclipse
export PATH

Now load the new settings using the following command

source ~/.bashrc

For running the sdk manager or the adt eclipse you can type the following into terminal now.

## SDK-Manager ##

## ADT Eclipse ##

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s