If you are using Windows and your device is connected:
click Start > Right-click My Computer > Manage It will open Computer Management. Click on System Tools > Device Manager. Expand the Universal Serial Bus controllers node from the center frame. Identify your android device: Look for yellow-exclamation-mark icons or a name like Android device/HTC something; Right-click > Uninstall.
Drivers will be removed and the device will be unrecognized again.
Take out the wire and reconnect it; This time, Windows will again look for drivers (as if they were new), and then it must be installed correctly again.
The reason it should work on a different USB port, but not on the original one, is because drivers were installed only for that port; if drivers move, change, or disappear, it damages the installation; but the installation is still saved on this USB port.
source share