[How To] Install Android SDK On Ubuntu

Discussion in 'Android Rooting' started by iowabowtech, Aug 28, 2012.

  1. scotty85

    scotty85 Guides
    Guide
    6,313

    Jul 25, 2010
    11,139
    7,418
    6,313
    any idea of this works with 14.04? just did a fresh install on my desktop :D
     

    Advertisement
  2. iowabowtech

    iowabowtech root@android:/ #
    6,393

    May 2, 2010
    12,135
    8,610
    6,393
    Making the Establishment nervous
    Iowa|USA

    Hello my friend, good to see you. :)

    This does work on 14.04, I am currently running the same (though kubuntu). If you have any hiccups along the way, let me know and I will work with you to mitigate.
     
    scotty85 likes this.
  3. EarlyMon

    EarlyMon The PearlyMon
    Moderator
    10,118

    Jun 10, 2010
    57,623
    70,354
    10,118
    New Mexico, USA
    scotty85 likes this.
  4. scotty85

    scotty85 Guides
    Guide
    6,313

    Jul 25, 2010
    11,139
    7,418
    6,313
    thanks IBT! good to see you as well :cool:

    the desktop was getting to be in pretty sad shape and lagging pretty badly and crashing frequently,so i added some ram and a solid state drive,and completely wiped everything. fresh install of windows 7 and dual boot 14.04. ive been afraid to let the 12.04 laptop upgrade past that,as its specs arent fantastic. this worked fantasticly on the old laptop,so i came right here when it became time to do it on the desktop :D

    i decided to run thru it,and have gotten a couple of errors. its been awhile since i did this on the 12.04 laptop,so im unsure if i ran into the same issues.

    first issue is this when installing the sdk:
    Code (Text):
    1. scotty85@scotty85-A780L3G:~$ cd ~/android-sdk-linux/tools
    2. scotty85@scotty85-A780L3G:~/android-sdk-linux/tools$ ./android
    3.  
    4. (Android SDK Manager:17155): GLib-CRITICAL **: Source ID 454 was not found when attempting to remove it
    5.  
    6. (Android SDK Manager:17155): GLib-CRITICAL **: Source ID 499 was not found when attempting to remove it
    7.  
    8. (Android SDK Manager:17155): GLib-CRITICAL **: Source ID 581 was not found when attempting to remove it
    9.  
    10. (Android SDK Manager:17155): GLib-CRITICAL **: Source ID 703 was not found when attempting to remove it
    11.  
    12. (Android SDK Manager:17155): GLib-CRITICAL **: Source ID 736 was not found when attempting to remove it
    13.  
    14. (Android SDK Manager:17155): GLib-CRITICAL **: Source ID 761 was not found when attempting to remove it
    15.  
    16. (Android SDK Manager:17155): GLib-CRITICAL **: Source ID 806 was not found when attempting to remove it
    17.  
    18. (Android SDK Manager:17155): GLib-CRITICAL **: Source ID 976 was not found when attempting to remove it
    19.  
    20. (Android SDK Manager:17155): GLib-CRITICAL **: Source ID 1017 was not found when attempting to remove it
    21.  
    22. (Android SDK Manager:17155): GLib-CRITICAL **: Source ID 1521 was not found when attempting to remove it
    23.  
    24. (Android SDK Manager:17155): GLib-CRITICAL **: Source ID 1634 was not found when attempting to remove it
    25.  
    26. (Android SDK Manager:17155): GLib-CRITICAL **: Source ID 1646 was not found when attempting to remove it
    27.  
    then when opeing android rules:
    Code (Text):
    1. scotty85@scotty85-A780L3G:~/android-sdk-linux/tools$ cd
    2. scotty85@scotty85-A780L3G:~$ sudo gedit /etc/udev/rules.d/99-android.rules
    3.  
    4. (gedit:17215): Gtk-WARNING **: Calling Inhibit failed: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
    5.  
    the text document that opens is empty :eek:

    should i carry on? was unsure if i should paste in to the blank document and save it

    thanks,guys!
     
  5. iowabowtech

    iowabowtech root@android:/ #
    6,393

    May 2, 2010
    12,135
    8,610
    6,393
    Making the Establishment nervous
    Iowa|USA
    Mine was empty too, not a big deal. However, if you are only looking for adb/fastboot, you may be time ahead to check out EM's link above to the mini-sdk. He has a great shell script in there for linux that automates the setup quite nicely.

    Also, edited OP for newest version 24.0.2 (as of 3/7/15)
     
    #30 iowabowtech, Mar 7, 2015
    Last edited: Mar 7, 2015
    scotty85 and EarlyMon like this.
  6. EarlyMon

    EarlyMon The PearlyMon
    Moderator
    10,118

    Jun 10, 2010
    57,623
    70,354
    10,118
    New Mexico, USA
    The first script caused problems for @scotty85 so I changed the approach. And wasn't being updated rapidly enough.

    By then, he'd moved on.

    I stumbled on to a universal Mini-SDK in 2010, wish I remembered whose it was so I could give credit (actually, I just realized how I could look that up).

    The full SDK can give screen shots on a phone lacking that, the Mini-SDK cannot. Haven't seen one of those since 2011, and even then wasn't a problem after rooting.

    If you're developing, the full SDK is essential.

    As I write this, the Mini-SDK comes from from platform-tools revision 21 pulled from SDK Tools Revision 23.0.5 (October 2014). TWRP 2.8.3 and above are supported, adb version is 1.0.32.

    So, time to update again. :D

    Btw - you can also get adb and fastboot with apt-get.

    sudo apt-get install android-tools-adb android-tools-fastboot

    For more information and worth noting -

    http://bernaerts.dyndns.org/linux/74-ubuntu/328-ubuntu-trusty-android-adb-fastboot-qtadb
     
    #31 EarlyMon, Mar 7, 2015
    Last edited: Mar 7, 2015
    iowabowtech and scotty85 like this.
  7. scotty85

    scotty85 Guides
    Guide
    6,313

    Jul 25, 2010
    11,139
    7,418
    6,313
    Cool,I shall carry on when I get home.

    I work with a lot of different phones,so I definitely want to get the full sdk installed and in the path so it will work in multiple folders. It works great on the old laptop :D
     
    EarlyMon and iowabowtech like this.
  8. EarlyMon

    EarlyMon The PearlyMon
    Moderator
    10,118

    Jun 10, 2010
    57,623
    70,354
    10,118
    New Mexico, USA
    Ummm... The Mini-SDK installer puts adb and fastboot in your path. Just saying...

    In your first attempt, you had gotten so much "help" lol that your platform was pretty well corrupted and that's half of why mine didn't work out for you.

    About 99.999% sure that the apt-get install will put both in your path as well. And they'll update along with the rest of your system when you do that.

    In fact, I'm going to add that to the Mini-SDK for Debian-based users, so they can avoid everything else.

    A full SDK install is a lot of unnecessary work if you're not developing. And bloat.

    And you get the requirement to install the lovely and largely unnecessary Java VM that won't stop updating. All just to run adb and fastboot the hard way. :D ;)
     
    #33 EarlyMon, Mar 7, 2015
    Last edited: Mar 7, 2015
  9. scotty85

    scotty85 Guides
    Guide
    6,313

    Jul 25, 2010
    11,139
    7,418
    6,313
    At this point, I've already got it installed, lol. I may have gone the mini SDK route if I'd known that ADB and fastboot would have automatically worked in every folder.

    But, it is kind of my nature to do things the hard way whenever possible :D
     
    EarlyMon likes this.
  10. EarlyMon

    EarlyMon The PearlyMon
    Moderator
    10,118

    Jun 10, 2010
    57,623
    70,354
    10,118
    New Mexico, USA
    Next time, go the apt-get install route and you can be confident that you're always up to date without a big download and yet another folder reorganization by Google - where you get to deconflict your path by hand.

    Because yes they've done it before with the full SDK and I'd bet real money they'll do it again. ;) :D
     
    scotty85 likes this.
  11. iowabowtech

    iowabowtech root@android:/ #
    6,393

    May 2, 2010
    12,135
    8,610
    6,393
    Making the Establishment nervous
    Iowa|USA
    ^^added to beginning of OP to let future folks know who may be unaware of option. Also, EM this isn't exactly in the ideal forum so if a merge/move/etc is more desirable, whatever is best for the site is a +1 from me. Or if you have any edit ideas to shore it up some, lemme know or just straight up commit them to OP.
     
    scotty85 and EarlyMon like this.
  12. EarlyMon

    EarlyMon The PearlyMon
    Moderator
    10,118

    Jun 10, 2010
    57,623
    70,354
    10,118
    New Mexico, USA
    Fair enough compadre, I'm already kanging part of the OP for the Mini-SDK while I'm at it. :D

    Will move later, probably make it a sticky in the rooting forum.
     
    scotty85 and iowabowtech like this.
  13. scotty85

    scotty85 Guides
    Guide
    6,313

    Jul 25, 2010
    11,139
    7,418
    6,313
    welp,need it or not ive got it and everything seems to be working perfectly :D many thanks EM and IBT
     
    iowabowtech and EarlyMon like this.
  14. iowabowtech

    iowabowtech root@android:/ #
    6,393

    May 2, 2010
    12,135
    8,610
    6,393
    Making the Establishment nervous
    Iowa|USA
    How did fastboot go? Did you need to follow the link at the end of the OP or no?
     
  15. scotty85

    scotty85 Guides
    Guide
    6,313

    Jul 25, 2010
    11,139
    7,418
    6,313
    Yup,used the link at the end of the op and fastboot is fine :D

    Is it possible to use terminal in one of the hard drives? I.e. something not inside the home folder?

    edit:
    ignore that last question,lol... figured it out :D
     
    #41 scotty85, Mar 7, 2015
    Last edited: Mar 7, 2015
  16. iowabowtech

    iowabowtech root@android:/ #
    6,393

    May 2, 2010
    12,135
    8,610
    6,393
    Making the Establishment nervous
    Iowa|USA
    OP updated for revision 24.4.1.
     
    scary alien likes this.

Share This Page

Loading...