android device_error ai_generated true

adb: device unauthorized. Please check the confirmation dialog on your device.

ID: android/adb-device-unauthorized

Also available as: JSON · Markdown
90%Fix Rate
92%Confidence
3Evidence
2023-01-01First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
any active

Root Cause

ADB cannot communicate with device. USB debugging not enabled or RSA key not accepted on device.

generic

Workarounds

  1. 95% success Accept USB debugging prompt on the device screen
    Unlock phone screen > tap 'Always allow from this computer' > OK

    Sources: https://developer.android.com/build/

  2. 92% success Enable USB debugging in Developer Options
    Settings > About Phone > tap Build Number 7 times > Developer Options > USB debugging
  3. 85% success Revoke and re-authorize USB debugging authorizations
    adb kill-server && Settings > Developer Options > Revoke USB debugging authorizations > reconnect

Dead Ends

Common approaches that don't work:

  1. Restart adb server repeatedly 72% fail

    If the device has not authorized the computer, restarting adb will not help

  2. Use a different USB cable assuming it is a cable issue 80% fail

    Unauthorized error is an authentication issue, not a connectivity issue. The device IS connected.