This problem has been bugging me for ages and I can\'t seem to fix it or fully localize the source of the problem (although at times I can force it by allowing the phone to Stan
Try these two things, now everything is working for me:
Install the device's manufacturer USB Drivers.
Replace the data cable you are using.