Needed Applications for Build Android Environment in Linux
Here we are going to build Android Environment in 64-bit linux .Normally the android SDK was not support to 64-bit linux So we have add a library to run SDK on linux . First of all we have to download some application from Android developer site.
Step 1
Install the Java Virtual machine (JDK) with required version it can be 64bit or 32 bit
To check java version :
If you don't install JDK the download is from oracle and install it
click
OR
sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jdk sun-java6-plugin
Step 2
Extract the download android SDK and NDK in any location in side of your home directory and follow the instruction
http://developer.android.com/sdk/installing.html#Installing in this link
using tar -xvf android-sdk-(version) to extract
After the installation you have to install the platform for your android virtual environment
Follow the
link this will good instruction to install
Note: if you are dealing with native layer also then extract the android NDK file as well And to change the permission of a folder
chmod -R 777 for android-sdk-linux_x86, platform-tools and adb. to change
Step 3
Install 32 bit supported library for 64 bit linux machine
sudo apt-get update
sudo apt-get install ia32-libs
Step 4
install the Eclipse from the Eclipse . Note Don't install the eclipse from ubuntu market because it was customised one.Therefore use the latest version from eclipse .
Here we have to install android ADT tool in eclipse for that we need to add the specific link to new installation path
If you faced any problem with installation like bellow
"
Software being installed: Android Native Development Tools 20.0.0.v201206242043-391819(com.android.ide.eclipse.ndk.feature.group 20.0.0.v201206242043-391819)
Missing requirement: Android Native Development Tools 20.0.0.v201206242043-391819(com.android.ide.eclipse.ndk.feature.group 20.0.0.v201206242043-391819) requires 'org.eclipse.cdt.feature.group 0.0.0' but it could not be found".
Then this is happening because it don't have the supported versions file .So for that we have to do some procedures like bellow
- Go to Help/"Install New Software..."
- Click on "Available Sofware Sites"
- Search "http://download.eclipse.org/releases/indigo and enable it
- Search "http://download.eclipse.org/tools/cdt/releases/indigo and enable it
- Come back to Help/"Install New Software..."
- Check "Contact all update sites during install to find requiered sofware"
- Install ADT Plugin
- IT MUST WORK!!!
After this process continue with your installation .
Step 5
setup the android SDK path using terminal
First of go in to your admin user profile in terminal then
-> sudo gedit ~/.bash_profile and don't use gedit /.bashrc and enter the below path depend on your folder path
# Android tools
export PATH=${PATH}:~/android-sdk-linux_x86/tools
export PATH=${PATH}:~/android-sdk-linux_x86/platform-tools
export ANDROID_SDK_HOME=~/android-sdk-linux_x86/tools
export PATH=$PATH:$ANDROID_SDK_HOME