The only way I could get my nexus 5 to work was to go into settings >> Developer Options >> scroll down into the networking section and select "Select USB Configuration", mine was already set for MTP (Media Transfer Protocol) but I had to select PTP and then select back to MTP, then everything...