Android SDK and Eclipse ADT on Fedora 16/15, CentOS/RHEL 6 - Comment Page: 2

This is guide howto install Android SDK Tools r16 and Eclipse ADT (Android Development Tools) Plugin on Fedora 16, Fedora 15, Fedora 14, Fedora 13, CentOS 6.2/6.1/6 and Red Hat (RHEL) 6.2/6.1/6. This Guide Contents 1. Preparing Your Development Computer and Install Required softwares 2. Install Andoid SDK 3. Install ADT Plugin for Eclipse 4. Configure Eclipse and Install Latest Android SDK with AVD Manager 5. Create Simple Android Test Project 1. Preparing Your Development Computer and Install Required softwares 1.1 Install Sun/Oracle Java 7 JDK/JRE 1.2 Install Eclipse SDK 3.7 (Indigo) 2. Install Andoid SDK 2.1 Change root user su - ## OR ## sudo...

104 comments on “Android SDK and Eclipse ADT on Fedora 16/15, CentOS/RHEL 6 - Comment Page: 2

1 2 3 4
    1. everythink work s as described under CentOS 5.5 also for android version 2.3, except for the emulator:

      [2010-12-19 12:22:20 – Emulator] /opt/android-sdk/tools/emulator: /lib/libc.so.6: version `GLIBC_2.8′ not found (required by /opt/android-sdk/tools/emulator)
      [2010-12-19 12:22:20 – Emulator] /opt/android-sdk/tools/emulator: /lib/libc.so.6: version `GLIBC_2.7′ not found (required by /opt/android-sdk/tools/emulator)
      [2010-12-19 12:22:20 – Emulator] /opt/android-sdk/tools/emulator: /lib/libc.so.6: version `GLIBC_2.11′ not found (required by /opt/android-sdk/tools/emulator)

      Reply
      • Hi ur,

        This is new problem with CentOS 5.5 and Red Hat (RHEL) 5.5. It appears that the Android SDK’s one requirement is now Glibc 2.11 and CentOS 5.5 and Red Hat (RHEL) 5.5 uses Glibc 2.5.

        This is one “hack” howto get it working with Android SDK r08:

        
        ## Download Android SDK tools r07 ##
        wget http://dl.google.com/android/repository/tools_r07-linux.zip
        
        ## Extract emulator from Android SDK r07 zip with following command ##
        unzip -oj tools_r07-linux.zip tools_r07-linux/emulator -d /opt/android-sdk/tools/
        

        Do you got it working with this or found any other problems?

        Reply
    2. Thanks very mutch for this article, i was having a bad time trying to making this work under fedora 14. Adding the Helios url and then updating fixed everything

      Reply
    3. /emulator: /lib/libc.so.6: version `GLIBC_2.8′ not found (required by ./emulator)
      ./emulator: /lib/libc.so.6: version `GLIBC_2.7′ not found (required by ./emulator)
      ./emulator: /lib/libc.so.6: version `GLIBC_2.11′ not found (required by ./emulator)
      not runing emulator android
      ugh busy??

      Reply
    4. Excellent guide! :)

      Reply
    5. Hey. Like everyone else, I’m trying to install the Android SDK on my 64 bit Centos. When I get to step 4.1/4.2, I get an error saying “/android-sdk/platforms is missing” and “failed to get the required ADT number from the SDK” So I “ls” my android sdk directory and see I only have ‘tools”.

      Was platforms and whatever else suppose to be downloaded in step 3.3 or was it suppose to have come out of the same zip file that the emulator did in 2.3? I notice that in step 2.3 the emulator is referenced specifically.

      I did try uninstalling and reinstalling under root to see if that would fix it but to no avail. Any help would be appreciated. Thanks!

      Reply
      • Hi Malfroy,

        Sorry I forgot add CentOS on Android SDK download row…

        You have to complete all following steps on 64 bit CentOS:

        
        ## Select place to download
        cd /tmp
         
        ## Download Android SDK r08 package for Fedora, CentOS and Red Hat (RHEL) 6 ##
        wget http://dl.google.com/android/android-sdk_r08-linux_86.tgz
         
        ## Download Android SDK tools r07 for CentOS 5.5 and Red Hat (RHEL) 5.5 ##
        wget http://dl.google.com/android/repository/tools_r07-linux.zip
        
        ## Extract Android SDK r08 ##
        tar -xvzf android-sdk_r08-linux_86.tgz
        
        ## Move Android SDK example to /opt
        mv android-sdk-linux_86/ /opt/android-sdk
         
        ## CentOS 5.5/Red Hat (RHEL) 5.5 Extract emulator from Android SDK r07 zip with following command ##
        unzip -oj tools_r07-linux.zip tools_r07-linux/emulator -d /opt/android-sdk/tools/
        
        Reply
        • Got it working. Thanks for the clarificaiton!

          Reply
    6. Great article.

      Just what I needed.

      For anyone that sees this message
      “Waiting for HOME (‘android.process.acore’) to be launched”

      It does take an unfeasibly long time to run the emulator for the first time. Go make yourself a coffee and come back to it.

      Reply
    7. Great article! This was instrumental in helping me get the SDK installed back a few months ago.

      New development – The latest Android SDK (r10) is available, and requires ant 1.8. Fedora 14 only offers ant 1.7, even in the third-party repositories. I’m stick at this very point right now :(

      Reply
      • Hi Brad,

        Nice to see you here and nice to hear that this was helpful to you. :)

        And then your problem. I checked that stackoverflow discussion and yes you could install ant easily to /opt and change Eclipse settings. It should work, but another (more Fedora style) method is use yum package management system and Fedora rawhide repository.

        Install rawhide repo:

        
        yum install fedora-release-rawhide
        

        Install / Update ant 1.7 to 1.8

        
        yum --enablerepo=rawhide update ant
        
        ...
        Setting up Update Process
        Resolving Dependencies
        --> Running transaction check
        --> Processing Dependency: ant = 1.7.1-13.fc13 for package: ant-apache-resolver-1.7.1-13.fc13.i686
        --> Processing Dependency: ant = 1.7.1-13.fc13 for package: ant-apache-regexp-1.7.1-13.fc13.i686
        --> Processing Dependency: ant = 1.7.1-13.fc13 for package: ant-jdepend-1.7.1-13.fc13.i686
        --> Processing Dependency: ant = 1.7.1-13.fc13 for package: ant-scripts-1.7.1-13.fc13.i686
        --> Processing Dependency: ant = 1.7.1-13.fc13 for package: ant-junit-1.7.1-13.fc13.i686
        --> Processing Dependency: ant = 1.7.1-13.fc13 for package: ant-jsch-1.7.1-13.fc13.i686
        --> Processing Dependency: ant = 1.7.1-13.fc13 for package: ant-apache-oro-1.7.1-13.fc13.i686
        --> Processing Dependency: ant = 1.7.1-13.fc13 for package: ant-javamail-1.7.1-13.fc13.i686
        --> Processing Dependency: ant = 1.7.1-13.fc13 for package: ant-apache-log4j-1.7.1-13.fc13.i686
        --> Processing Dependency: ant = 1.7.1-13.fc13 for package: ant-commons-net-1.7.1-13.fc13.i686
        --> Processing Dependency: ant = 1.7.1-13.fc13 for package: ant-swing-1.7.1-13.fc13.i686
        --> Processing Dependency: ant = 1.7.1-13.fc13 for package: ant-antlr-1.7.1-13.fc13.i686
        --> Processing Dependency: ant = 1.7.1-13.fc13 for package: ant-apache-bcel-1.7.1-13.fc13.i686
        --> Processing Dependency: ant = 1.7.1-13.fc13 for package: ant-apache-bsf-1.7.1-13.fc13.i686
        --> Processing Dependency: ant = 1.7.1-13.fc13 for package: ant-commons-logging-1.7.1-13.fc13.i686
        --> Processing Dependency: ant = 1.7.1-13.fc13 for package: ant-apache-resolver-1.7.1-13.fc13.i686
        --> Processing Dependency: ant = 1.7.1-13.fc13 for package: ant-apache-regexp-1.7.1-13.fc13.i686
        --> Processing Dependency: ant = 1.7.1-13.fc13 for package: ant-jdepend-1.7.1-13.fc13.i686
        --> Processing Dependency: ant = 1.7.1-13.fc13 for package: ant-scripts-1.7.1-13.fc13.i686
        --> Processing Dependency: ant = 1.7.1-13.fc13 for package: ant-junit-1.7.1-13.fc13.i686
        --> Processing Dependency: ant = 1.7.1-13.fc13 for package: ant-jsch-1.7.1-13.fc13.i686
        --> Processing Dependency: ant = 1.7.1-13.fc13 for package: ant-apache-oro-1.7.1-13.fc13.i686
        --> Processing Dependency: ant = 1.7.1-13.fc13 for package: ant-javamail-1.7.1-13.fc13.i686
        --> Processing Dependency: ant = 1.7.1-13.fc13 for package: ant-apache-log4j-1.7.1-13.fc13.i686
        --> Processing Dependency: ant = 1.7.1-13.fc13 for package: ant-commons-net-1.7.1-13.fc13.i686
        --> Processing Dependency: ant = 1.7.1-13.fc13 for package: ant-swing-1.7.1-13.fc13.i686
        --> Processing Dependency: ant = 1.7.1-13.fc13 for package: ant-antlr-1.7.1-13.fc13.i686
        --> Processing Dependency: ant = 1.7.1-13.fc13 for package: ant-apache-bcel-1.7.1-13.fc13.i686
        --> Processing Dependency: ant = 1.7.1-13.fc13 for package: ant-apache-bsf-1.7.1-13.fc13.i686
        --> Processing Dependency: ant = 1.7.1-13.fc13 for package: ant-commons-logging-1.7.1-13.fc13.i686
        ---> Package ant.noarch 0:1.8.2-4.fc16 set to be installed
        --> Running transaction check
        ---> Package ant-antlr.noarch 0:1.8.2-4.fc16 set to be updated
        ---> Package ant-apache-bcel.noarch 0:1.8.2-4.fc16 set to be updated
        ---> Package ant-apache-bsf.noarch 0:1.8.2-4.fc16 set to be updated
        ---> Package ant-apache-log4j.noarch 0:1.8.2-4.fc16 set to be updated
        ---> Package ant-apache-oro.noarch 0:1.8.2-4.fc16 set to be updated
        ---> Package ant-apache-regexp.noarch 0:1.8.2-4.fc16 set to be updated
        ---> Package ant-apache-resolver.noarch 0:1.8.2-4.fc16 set to be updated
        ---> Package ant-commons-logging.noarch 0:1.8.2-4.fc16 set to be updated
        ---> Package ant-commons-net.noarch 0:1.8.2-4.fc16 set to be updated
        ---> Package ant-javamail.noarch 0:1.8.2-4.fc16 set to be updated
        ---> Package ant-jdepend.noarch 0:1.8.2-4.fc16 set to be updated
        ---> Package ant-jsch.noarch 0:1.8.2-4.fc16 set to be updated
        ---> Package ant-junit.noarch 0:1.8.2-4.fc16 set to be updated
        ---> Package ant-scripts.noarch 0:1.8.2-4.fc16 set to be updated
        ---> Package ant-swing.noarch 0:1.8.2-4.fc16 set to be updated
        --> Finished Dependency Resolution
        
        Dependencies Resolved
        
        =======================================================================================
         Package                     Arch           Version              Repository       Size
        =======================================================================================
        Installing:
         ant                         noarch         1.8.2-4.fc16         rawhide         1.9 M
             replacing  ant-nodeps.i686 1.7.1-13.fc13
             replacing  ant-trax.i686 1.7.1-13.fc13
        Updating for dependencies:
         ant-antlr                   noarch         1.8.2-4.fc16         rawhide          24 k
         ant-apache-bcel             noarch         1.8.2-4.fc16         rawhide          26 k
         ant-apache-bsf              noarch         1.8.2-4.fc16         rawhide          22 k
         ant-apache-log4j            noarch         1.8.2-4.fc16         rawhide          21 k
         ant-apache-oro              noarch         1.8.2-4.fc16         rawhide          57 k
         ant-apache-regexp           noarch         1.8.2-4.fc16         rawhide          22 k
         ant-apache-resolver         noarch         1.8.2-4.fc16         rawhide          22 k
         ant-commons-logging         noarch         1.8.2-4.fc16         rawhide          22 k
         ant-commons-net             noarch         1.8.2-4.fc16         rawhide          96 k
         ant-javamail                noarch         1.8.2-4.fc16         rawhide          26 k
         ant-jdepend                 noarch         1.8.2-4.fc16         rawhide          31 k
         ant-jsch                    noarch         1.8.2-4.fc16         rawhide          55 k
         ant-junit                   noarch         1.8.2-4.fc16         rawhide         120 k
         ant-scripts                 noarch         1.8.2-4.fc16         rawhide          23 k
         ant-swing                   noarch         1.8.2-4.fc16         rawhide          25 k
        
        Transaction Summary
        =======================================================================================
        Install       1 Package(s)
        Upgrade      15 Package(s)
        
        Total download size: 2.5 M
        Is this ok [y/N] y
        
        Reply
    8. Hi,
      Thank you for your tutorial. I have a question about android application. Can I compile android application to run as desktop application. I mean, I wan to compile and running android application as my desktop application.
      Thank you

      Reply
      • Hi toto,

        No you can’t, sorry.

        You could run Android application just on Android platforms like:
        – Phones
        – Tablets
        – Emulators

        Reply
    9. Thanks, your tutorial is by far the best ive stumbled across, and i learned a lot of linux stuff as well. Now if only someone could figure out the R file missing crap ive dealt with for a year id be in heaven =)

      Reply
      • Hi Rayn,

        Thanks for the compliments. :)

        Could you explain in more detail what kind of problems that you have with R file? Have you tried clean your project (Project > Clean…)?

        Reply
    10. stuck at part install helios repository,everytime i input the address it gives an error..duplicate address…i have tried to remove all sites from preferences>>avilable softwares…and still gives an error,no software found at http://download.eclipse.org/releases/helios.for the record am using a proxy server.

      what might be the problem?

      thanks..

      Reply
    11. Thanks a lot for such a helpful article . I have been searching for

      /opt/android-sdk/tools/emulator: /lib/libc.so.6: version `GLIBC_2.7′ not found (required by /opt/android-sdk/tools/emulator)

      error everywhere.

      Reply
    12. Hello, I was trying to install the android SDK on a centOS 5.5 box and I succesfully installed but when I try to add for example the tools package that allows me to have gprs, touchscreen, gsm support I get a java Language null pointer exception and it disappears when I installed the android sdk tools revision 10, but this tools requires glibc 2.8++ which is impossible to install in this server… what should I do to have all emulator features of Tools rev 10 with the r07 emulator??
      regards

      Reply
    13. UPDATE
      There werer no issue, I just reinstalled the rev 10 tools and then I replace the emulator file with the r07version and it worked like a charm.

      Reply
1 2 3 4

Leave a Reply to Arun Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close