user2045139
user2045139

Reputation: 141

I can't upgrade from adb version 1.0.29

I'm trying to interface my nexus 7 with my linux mint machine. The device always shows as offline. I understand that this problem comes from having an adb older than 1.0.31. I keep installing the platform tools rev 21.1 which as of last month is the newest version which should install adb 1.0.31, but every time I run the command 'adb version' it comes back saying it is version 1.0.29. Is there another way to get it to upgrade?

Upvotes: 14

Views: 44898

Answers (8)

zeeawan
zeeawan

Reputation: 6895

I got it resolved by updating the Android Studio.

you can get the update by choosing Help > Check for Updates
(Android Studio > Check for Updates on macOS)

Upvotes: 0

Mike Keskinov
Mike Keskinov

Reputation: 11878

Answer for Windows:

You need to check where's your latest driver located and put this value in PATH system variable. To do so:

  1. Open Android SDK Manager (Android Studio/Tools/Android/SDK Manager; or from Eclipse).

  2. In the top left corner (just under menu) you'll see "SDK Path". This is where latest driver located.

  3. Open Control Panel\System and Security\System, click on "Advanced system settings", find button "Enviroment Variables...".

  4. Find the PATH variable in the list (check both lists). Find the old platrorm-tools path. Replace the old path to new onreplace what you have there to SDK Path + "platform-tools" (example "c:\Android2013\sdk\platform-tools").

Upvotes: 2

tinasuk
tinasuk

Reputation: 1

I resolved this problem on my Windows machine by following these steps:

  1. Install updates from SDK Manager
  2. Copy the corresponding adb files (dlls and exe) to C:\Windows\System32
  3. adb kill-server
  4. adb version

Android Debug Bridge version 1.0.31

Upvotes: 0

thrift
thrift

Reputation: 1

None of these worked for me.Updating the sdk still showed the older 1.0.29 version. I downloaded the 1.0.31 version from here and replaced the old adb with this and it worked. Now the device is recognized by adb in 4.2.2. Hope this helps someone and saves some time.

Upvotes: 0

CoPLaS
CoPLaS

Reputation: 1727

This solved this problem (running old adb) on Ubuntu:

  1. unplug device
  2. adb kill-server
  3. adb version
    • Android Debug Bridge version 1.0.29
  4. cd to android sdk dir
    • cd /home/XXX/adt-bundle-linux-x86_64/sdk/platform-tools/
  5. copy new adb to /usr/bin
    • sudo cp adb /usr/bin/
  6. adb version
    • Android Debug Bridge version 1.0.31
  7. adb kill-server
  8. adb devices
    • daemon not running. starting it now on port 5037 *
    • daemon started successfully * List of devices attached
  9. plug in the device, and on the device dialog about RSA appeared
  10. accept on device
  11. adb devices
    • List of devices attached
    • 04cefca0e29085aa device

Upvotes: 34

JAGDEESH GAIRA
JAGDEESH GAIRA

Reputation: 89

Best solution i found ever is:

  1. Check ur adb version by using command: adb version for windows and ./adb version for Linux system
  2. if it showing 1.0.29 please upgrade it to 1.0.31 because 1.0.29 will not rspond for JB 4.2.X
  3. it will fix ur device offline problem
  4. if ur system already have the new adb(1.0.31) and facing this problem, in that case open sdk and upgrade plateform tool to 16.0.1
  5. restart ur device atleast one time.. :) it will work fine for all the devices...

Upvotes: 0

Yasir Malik
Yasir Malik

Reputation: 439

You should first check whether proper drivers are installed for your device or not. The following link can help you.

http://developer.android.com/tools/device.html

Also, if you want to upgrade adb there is another way for that. Go to: https://launchpad.net/ubuntu/+source/android-tools/

Click on the quantal version (4.2.2-something). Download the .xz, .dsc, and .tar.gz and ten:

# sudo apt-get build-dep android-tools

# sudo apt-get install libselinux-dev

# dpkg-source -x android-tools*.dsc

# cd android-tools*

# fakeroot dpkg-buildpackage

# cd ..

# sudo dpkg -i android-tools-adb*

This solution was presented here: https://bugs.launchpad.net/ubuntu/+source/android-tools/+bug/1131163

Upvotes: 0

Yasir Malik
Yasir Malik

Reputation: 439

Following two steps can be performed to solve this issue.

  1. May be there is another adb running in the background. Use adb kill-server to stop the adb servers, and restart adb.

  2. If you want to update adb, it can be done by running SDK Manager from the install SDK location. Upgrade "Platform Tools" to upgrade adb.

  3. The problem stated above may be the same as following. Please check the following post.
    Android 4.2.2 - adb offline, even after SDK upgrade

Upvotes: 1

Related Questions