How to get usb debugging on android 6 working?

2019-07-28 23:59发布

问题:

So I used to have this working on 5, after an update to Android 6 I'm unable to get USB debugging to work. Anyone else run into this?

  • I've enabled USB debugging on the device.
  • I've tried three different USB cables
  • there are no options under storage & USB for, well, USB
  • I tried downloading the LG G4 unified drivers for OSX

回答1:

You might try revoking the debugging authorizations:

  • Unplug the device

  • Go into Settings > Developer Options and tap on "Revoke USB debugging authorizations"

  • Click OK on the resulting dialog

  • Plug the device in again and see if you get the ADB authorization dialog



回答2:

You might consider to change adb port in you pc.

  1. add "ANDROID_ADB_SERVER_PORT" and "5045" as new environment variable and its value.
  2. Restart adb using adb kill-server and adb start-server.


回答3:

Go to Settings -> About phone. Go to the bottom item "Build number" and click on it few times util you will see the toat: You are a developer now.

Now go back and you will see a new item called "Developer options". Click on it. Enable "USB debugging" option.



标签: android adb