Reputation: 141
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
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
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:
Open Android SDK Manager (Android Studio/Tools/Android/SDK Manager; or from Eclipse).
In the top left corner (just under menu) you'll see "SDK Path". This is where latest driver located.
Open Control Panel\System and Security\System
, click on "Advanced system settings", find button "Enviroment Variables...".
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
Reputation: 1
I resolved this problem on my Windows machine by following these steps:
Android Debug Bridge version 1.0.31
Upvotes: 0
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
Reputation: 1727
This solved this problem (running old adb) on Ubuntu:
Upvotes: 34
Reputation: 89
Best solution i found ever is:
Upvotes: 0
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
Reputation: 439
Following two steps can be performed to solve this issue.
May be there is another adb
running in the background. Use adb kill-server
to stop the adb servers, and restart adb
.
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.
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