I have an android based phone and I need ADB for installing new versions. However, until today ADB was working perfectly but today I got an error, it says "you need 1.0.32 or newer version." Yes, error is clear enough. Problem is, how ?

For the records, I've tried to remove ADB. With :

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

Then I re-installed it with :

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

Before this commands my ADB version was 1.0.31, still it is 1.0.31. But here ( http://developer.android.com/sdk/index.html#Other) As far as I see, there is new version, 1.0.35. But with terminal All I'm getting is 1.0.31. I've downloaded 1.0.35 zip but I don't know what to do with it.

How Can I uprade my ADB?

share|improve this question
up vote 13 down vote accepted

You can download the latest SDK including adb here. When you extract this archive, there is a readme which explains how to install the SDK. I list it here for your reference.

Welcome to the Android SDK!

The Android SDK archive initially contains only the basic SDK tools. It does
not contain an Android platform or any third-party libraries. In fact, it
doesn't even have all the tools you need to develop an application.

In order to start developing applications, you must install the Platform-tools
and at least one version of the Android platform, using the SDK Manager.

Platform-tools contains build tools that are periodically updated to support new
features in the Android platform (which is why they are separate from basic
SDK tools), including adb, dexdump, and others.

To install Platform-tools, Android platforms and other add-ons, you must
have an Internet connection, so if you plan to use the SDK while
offline, please make sure to download the necessary components while online.

To start the SDK Manager, please execute the program "android".

From the command-line you can also directly trigger an update by
executing:
  tools/android update sdk --no-ui

Tip: use --help to see the various command-line options.


For more information, please consult the Android web site at
  http://developer.android.com/sdk/

Once installed (you will have to install Java if you don't have it already), you can navigate to android-sdk-linux/platform-tools and execute adb from there by typing

./adb [options]

I freely admit this may not be the most elegant solution but it works for me. ISTR that on a different Ubuntu machine I managed a minimal install with just platform-tools sans Java, but I cannot find my notes on that.

share|improve this answer
    
Yes, I saw that txt but the commands was like elvish language so I found myself on askubuntu :) – Blaberus Mar 27 '15 at 18:42
    
Extract the archive, then go into the tools folder and doubleclick the "android" file. Click on Run in Terminal. – Organic Marble Mar 27 '15 at 18:45
    
there is no tools folder. I've downloadede "All Android Studio Packages" but there is no Tools folder in it. The list of folders in zip : bin grandle lib license plugins – Blaberus Mar 27 '15 at 18:51
    
Go to the link I provided and download android-sdk_r24.1.2-linux.tgz – Organic Marble Mar 27 '15 at 18:53
    
well, It works but I do not need that app, All I need is using "adb sideload <filename>" command but my ADB is 'still' 1.0.31 I need to update my ADB 1.0.32 or newer. – Blaberus Mar 27 '15 at 19:04

If you think, you have latest SDK but the adb tool is older one,

Use,

# adb version
Android Debug Bridge version 1.0.31
# wget -O - https://skia.googlesource.com/skia/+archive/cd048d18e0b81338c1a04b9749a00444597df394/platform_tools/android/bin/linux.tar.gz | tar -zxvf - adb
# sudo mv adb /usr/bin/adb
# sudo chmod +x /usr/bin/adb
# adb version
Android Debug Bridge version 1.0.32

Refernce http://bernaerts.dyndns.org/linux/74-ubuntu/328-ubuntu-trusty-android-adb-fastboot-qtadb

share|improve this answer
    
Good, succinct answer. You saved me from having to download the whole SDK. – MrUser Jul 27 '15 at 22:48
    
is this a trusted source? – TiloBunt Sep 12 '15 at 16:30
1  
This is Google builds repo. Nothing is safer than that. – zgoda Nov 25 '15 at 14:25
    
nice and neat answer. In some OS like Ubuntu 14.04, it is located at usr/local/bin/adb. – Amir Jul 27 '17 at 15:18

Improving on Organic Marble's answer, to only install the latest tools (not the whole sdk), use the platform-tool filter as below:

tools/android update sdk -t platform-tool --no-ui
share|improve this answer
    
Thanks! I had figured that out but lost my notes. – Organic Marble Sep 30 '15 at 0:38

If you are running a 64-bit version of Ubuntu, you need to install some 32-bit libraries with the following command:

$ sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386

Then install adb and fastboot:

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

Then follow this guide:

$ wget -O - https://skia.googlesource.com/skia/+archive/cd048d18e0b81338c1a04b9749a00444597df394/platform_tools/android/bin/linux.tar.gz | tar -zxvf - adb
$ sudo mv adb /usr/bin/adb
$ sudo chmod +x /usr/bin/adb
$ adb version
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.