-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Description
Just helped track down an issue an internal customer was having whereby multiple adb instances were fighting each other:
/usr/bin/adbexisted as part of theadbDebian package that was installed on the user's system. It seemed to be restarting its server automatically when killed because of an entry ininit.d$ANDROID_HOME/platform-tools/adbwas the user's preferredadbinstance and was also the instance detected by flutter tools since it lived in a proper SDK folder structure.
There was initially an issue whereby one adb client process would detect a mismatch between the client and server versions and restart the appropriate server, and in so doing, it'd echo a message to the terminal that flutter tools mistook for a device line (fixed in #9693).
Once that issue was fixed, the two adb servers still seemed to be fighting each other, causing the preferred adb to show no connected devices even though there were devices connected. The solution we eventually found for this was uninstalling /usr/bin/adb (via sudo apt-get remove adb)...
This experience, along with reports within the Flutter team of multiple adb instances not playing nicely with each other and with Flutter tools, means we probably want to add a doctor validator that will warn the user if multiple adb binaries are detected.