Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ADB disconnecting after a few minutes

After upgrading to Android Studio 2.2, adb will disconnect from my devices after a few minutes (~ 15 mins). I have to either re plug the device or disable ADB and renable every time. It happens with all devices. This is on MacOS Sierra. Is there a timeout setting they have added?

like image 585
Steve M Avatar asked Oct 09 '16 18:10

Steve M


2 Answers

The issue is with ADB and it is reported in the bug tracker: Issue 219085: adb does not work reliably on MacOS Sierra.

Answer from the thread:

The fix has been released in the Beta Preview Channel, we apologize for the inconvenience.or more information on how to use the Beta Preview Channel, please consult http://tools.android.com/download/studio

Edit-1:
Upgrading 2.2 to 2.2.1 or uninstalling the Android Studio-2.2 and installing the 2.2.1 won't work. Try to do clean uninstall by following the thread How to completely uninstall Android Studio? and check.

like image 156
blizzard Avatar answered Nov 18 '22 16:11

blizzard


I ran into this error as well, and it turned out that the problem for me was that a Stetho tab was open in Chrome (i.e. a tab at URL chrome://inspect/#devices ), which I guess was causing the device to be in use. Closing that tab, then running adb kill-server, made adb devices work again.

original answer https://stackoverflow.com/a/36662403/3290623

like image 7
Martin Mlostek Avatar answered Nov 18 '22 17:11

Martin Mlostek