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
Toggle on/off for 'USB Debugging' in settings worked for me.