2

When I go to run the application, my device no longer shows up in the chooser dialog. Developer options and USB debugging is still enabled no my phone, and I made sure the target SDK of my application is 23. Anyone else have this problem?

Floern
  • 31,495
  • 23
  • 98
  • 115
user2892437
  • 647
  • 8
  • 21

1 Answers1

1

I had the same issue. The following steps seemed to fix things for me.

  • In Developer Options, in the USB settings, choose "Revoke Authorizations" to clear all authorized devices.

  • In the main Android menu, when connected via USB you'll see an alert that says "Connected as a charging device" or some such thing -- click on that, and choose "Transferring media files". After that, it should say, "Connected as a media device" and it will show up in ADB as an unauthorized device (because we revoked authorizations earlier).

  • Now connect and disconnect your device (maybe unplug the cable and plug it back in?) and the phone should prompt you to authorize your PC. If it doesn't, try doing the second step above (setting as a media device) until the popup asks you to authorize your PC. Authorize it, and now you should be able to use ADB like normal.

Hope that helps?

HanClinto
  • 9,073
  • 3
  • 27
  • 30
  • Thanks! This was mostly correct for me. The only additional task after removing authorization tokens then re-plugging in the phone, open the notification that says, in my case, "Charging" -- it might be something else -- then switch to "Software Installation". After this, I was prompted to authorize. – user2892437 Apr 27 '16 at 17:47