I am sure this has been asked many times before, including here and here. Still, the answers given are no help for me (I wonder why this whole stuff is not conveniently included in Android Studio. It would save a lot of time...).
Here is what I have done: After plugging in the device I used the command lsusb
, which has one line in it as follows:
Bus 003 Device 002: ID 1004:633e LG Electronics, Inc.
I 'assume' this is my phone, since it is a LG G3 phone. Then, according to the answers I have found, I have inserted the following line into the new file /etc/udev/rules.d/51-android.rules
:
SUBSYSTEM=="usb", ATTR{idVendor}=="1004", MODE="0666", GROUP="plugdev"
The group plugdev
exists and I am in this group (i.e. the normal user).
Then I have rebooted the laptop, and made adb kill-server
and adb start-server
, but the command adb devices
still gives the following output:
$ adb devices
List of devices attached
How to fix this problem, so I can let AndroidStudio run the app on an actual phone?
Additional information:
- On the phone I turned on 'USB debugging' as explained here
- Output of
dmesg
does not show any usb-related error or warning. - Using different ports does not help.
- Using a different cable does not help
- Trying a different phone (Samsung) does not help either (after adding the Samsung-related line into the rules-file, restarting
udev
, etc.)