while doing all this don't forget to increase the sleep time, so that if the device prompts for authentication on the mobile device you know that the connection is succeeded.
Try 1:
- Install "microsoft universal c runtime".
- Download the file as per your OS (operating system.)
https://support.microsoft.com/en-in/help/2999226/update-for-universal-c-runtime-in-windows
Installing Google USB Driver from Developersdeveloper.android.com didn't work for me.
Try 2:
- search "androidmtk" and install driver installer. (restart pc) (check whether device is showing)
- Else search "adbdriver" and install driver installer. (restart pc) (check whether device is showing)
Try 3:
- Check out whether in Android studio's status bar (displayed at the very bottom of window), any message has been shown. Do the changes suggested in the message.
Try 4:
- Check whether device is shown after changing the connection type (mostly shown on dragging the top bar on home screen).
- i.e. "Charging only", "Transfer files", "Transfer photos PTP or MTP"
Try 5:
- Go to Android "Tools menu"->"SDK manager"->
- Below "Android SDK location" you will see 3 tabs.
- Out of it click on "SDK tools" and in the list find and tick-mark "Google USB drivers" and install the package.
- Restart the computer.