When I type adb devices command on terminal, it shows device is connected
adb devices
List of devices attached 0123456789ABCDEF
List of devices attached
0123456789ABCDEF
I have also experienced similar problems I think I solved it by having the USB debugging option switched on within Developer Options in Settings.
REPEAT The following steps above, it should work!