I previously developped Android apps on Android Studio . Everything works fine.
I work on real device, and Android Studio recognize it without issue.
Suddenl
When I had this problem, I wrote adb kill-server
and adb restart-server
in terminal, but the problem appeared again the next day. Then I updated GPU debugging tools in the Android SDK manager and restarted the computer, which worked for me.
If you are in Android Studio Open Terminal
adb kill-server
press enter and again
adb start-server
press enter
Otherwise
Open Command prompt and got android
sdk>platform-tools> adb kill-server
press enter
and again
adb start-server
press enter
I do not find a perfect way in Android Studio, get the process id and kill it from terminal:
ps -e | grep adb
kill -9 pid_adb
After reinstalling Android Studio, Is working without adb kill-server
open command prompt -> cd
to your sdk\platform-tools
type below command:
adb kill-server && adb start-server
Open Command promt and got android sdk>platform-tools> adb kill-server
press enter
and again
adb start-server
press enter