Installing and setting up Android Developer Tools in Ubuntu 13.10





1. Check whether your Ubuntu is running 32bit or 64 bit OS. In terminal window, type in

                     uname –m
        

  • If the response is i686, you have a 32-bit version of Linux.
  • If the response is x86_64, you have a 64-bit version of Linux.


2. Download Android Developer Tool and extract anywhere you want and rename it with no space.

           /Home/ADT

3. Download Java Runtime Environment (JRE) extract inside eclipse directory of your Android Developer Tool and rename it to jre.

          /Home/ADT/eclipse/jre


If your are running Ubuntu with 64 bit system, it is required to install  lib32z1 lib32ncurses5 lib32bz2-1.0 to avoid this error: /home/username/ADT/sdk/platform-tools/aapt: error while loading shared libraries: libz.so.1: cannot open shared object file: No such file or directory

      Install ia32-libs via terminal : sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6

4. If java is not installed you will encounter this errors:


       ./android: 1: ./android: java: not found
       ./android: 1: ./android: java: not found
       ./android: 110: exec: java: not found

         Install Java via terminal :   sudo apt-get install openjdk-7-jdk

          or

    You can install Oracle Java 8 (JDK8 and JRE8) In Ubuntu 14.04, 13.10, 12.10, 12.04 and 10.04 Via PPA 

    Add the webupd8team PPA repository and install Oracle Java 7/8 using the following commands:


install Oracle Java 7


                sudo add-apt-repository ppa:webupd8team/java                

                sudo apt-get update               
                sudo apt-get install oracle-java7-installer 

install Oracle Java8


              sudo add-apt-repository ppa:webupd8team/java              

              sudo apt-get update             
              sudo apt-get install oracle-java8-installer


4. Open ADT click eclipse inside /Home/ADT/eclipse/eclipse
       


5. As you continue developing apps, you may need to install additional versions of Android for the emulator and other packages such as the library for Google Play In-app Billing. To install more packages, use the SDK ManagerOpen SDK Manager and install packages you need.



        Read more about recommended packages here : http://developer.android.com/tools/help/sdk-manager.html

        Tools
        Android 4.0 +
        Extras



Comments

Popular posts from this blog

CakePHP 4: Firebase Cloud Messaging Component in CakePHP for Push Notification

CakePHP 4 : Using Component inside Command ( Shell )

LIMIT SSH ACCESS BY COUNTRY