Restart the computer. Now, disconnect the device, connect it, Make sure USB debugging Option is enabled. Now, pull navigation drawer and select the option USB for file transfer. In the dialog; there are few options such as ;
- Transferring media files
- Transferring images
- Connecting MIDI devices
- None
select None and now select Transferring media files.
Now, check Android studio, and select Android Monitor and check whether device is attached or not.
Thank you !! I hope it helps for your problem.