I have enabled developer options and usb debugging mode in my emulator in android studio and it was working very well; it was listed in my connected usb devices and I could select it for running my application. But once I killed the process from command-line with sudo kill -9
(since my computer was freezing and I had no other choice), my usb connected device list is empty.
What I've tried:
sudo abd kill-server
and sudo abd start-server
; nothing changed.Notes:
sudo adb devices -l
and my emulator was not listed there either.I tried the solution here by Deepak Kumar and it worked. It is:
- Go to Phone Setting > Developer options > Revoke USB debugging.
- Turn off USB debugging and Restart Again.