Sunday, January 19, 2014

Install android for linux

Steps to install Android Development Tool for Linux.



  1. Download SDK ADT bundle for linux.
  2. Unpack the ZIP file (named adt-bundle-.zip) and save it to an appropriate location, such as a "Documents" directory in your home directory.
  3. Open the adt-bundle-/eclipse/ directory and launch eclipse.
That's it! The IDE is already loaded with the Android Developer Tools plugin and the SDK is ready to go. 

Caution: Do not move any of the files or directories from the adt-bundle- directory. If you move the eclipse or sdk directory, ADT will not be able to locate the SDK and you'll need to manually update the ADT preferences.
To proceed with the installation
A Java Runtime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No Java virtual machine was found after searching the following locations:
Install JDK 7 INSTALL ORACLE JAVA 7 IN UBUNTU VIA PPA REPOSITORY

Preparing your system
First you need to remove openjdk for this run the following command from your terminal

sudo apt-get purge openjdk*

If you installed java 7 from any other PPA and you are having problem with java then you have to do following steps before installing the PPA menctioned here


sudo rm /var/lib/dpkg/info/oracle-java7-installer*
sudo apt-get purge oracle-java7-installer*
sudo rm /etc/apt/sources.list.d/*java*
sudo apt-get update

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer


No comments: