Problem
Every time I attempt to install and run an app from Android Studio to a physically plugged smartwatch (I develop wearable apps), the device gets disconnected from the ADB list of available devices before the application gets installed.
Steps to reproduce
- I unplug -> re-plug the desired device with a USB cable so it gets recognized by ADB and therefore listed in the menu of available devices in Android Studio.
- I select the desired device from the list of connected devices in Android Studio.
- I hit the 'Run' or 'Debug' button to install the app on the device.
- After a few seconds, the device gets disconnected for no apparent reason, and Android Studio provides this message: Android Error message
Setup
- Android Studio 3.5.1
- Archlinux 5.3.5 (default kernel)
Remarks
- The same problem occurs when using
adb
from the command line. Running the commandadb -s device-id install apk-name.apk
immediately disconnects the device. - The dmesg command indicates that from a system point of view, the device is still connected and recognized.
- This problem occurs on any device I try. This is, therefore, not a cable or a device issue.
- The computer I work on also has a Windows partition. The problem does not occur under Windows. This seems to indicate that it is not a hardware issue. It might be a Linux issue or an Android Studio. I have no idea how to find out.