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?
-
does that happens when the screen goes off? – David Oct 09 '16 at 18:53
-
maybe a bad usb cable – CGeorgian Oct 09 '16 at 18:55
-
@Dionis L happens all usb cables – Steve M Oct 09 '16 at 18:57
-
1@David happens when screen is left on too – Steve M Oct 09 '16 at 18:57
-
Why this question had -1? This is actually happening. Downloading the update. – Pedro Varela Oct 10 '16 at 19:45
4 Answers
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

- 1
- 1

- 2,755
- 1
- 28
- 57
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.
-
I think this it, I think I actually upgraded Android studio after Sierrra, or the problem started happening after upgrading to Sierra. – Steve M Oct 09 '16 at 19:49
-
1I faced the issue in Android Studio-2.2 after upgrading to sierra, before that it worked fine on Yosemite. – blizzard Oct 09 '16 at 19:56
-
@blizzard after updating the android studio still facing the issue ! – Rachita Nanda Oct 24 '16 at 06:26
-
1@blizzard I had no problems after completly uninstalling Android Studio and reinstalling 2.2.2. Thanks. – Steve M Oct 25 '16 at 02:32
Try to install the drivers again and restart the Mac, it works for me on AS 2.2
if you do not want to upgrade your Android studio to preview version , just open the sdk manager and upgrade the sdk build-tools, then restart android studio . it works for me !

- 3,051
- 1
- 23
- 26