Android studio showing device as someAlphanumeric[null]

3.3k Views Asked by At

I am using Redmi Note 5 Pro as a physical device to connect to the android studio. A night before everything was working fine and I was able to install apps from android studio to my physical device and view Logs with ease but Now apparently it's not working and showing the device as NULL. Please help. I tried the post method but it is not working for me.

PS: The only thing I did was update a system update MIUI 9.5.14.0 in between but I suppose that should not be the reason for this.

OS: Ubuntu 16.04 LTS

2

There are 2 best solutions below

0
Falcon On BEST ANSWER

As pointed out in the post

   ~/Android/Sdk/platform-tools> ./adb devices

Then restart the adb despite it shows device by

   ~/Android/Sdk/platform-tools$> ./adb kill-server

   ~/Android/Sdk/platform-tools$> sudo ./adb devices

This worked for me. Since it showed the device as against the answer in post prior to killing the adb server.

0
hb0 On

A more permanent solution instead of restarting the adb service every time you can add a udev rule so that you can always access the device.

See: https://stackoverflow.com/a/51554826/5815054