adb: device unauthorized. This adb server's $ADB_VENDOR_KEYS is not set
The phone hasn’t accepted your computer’s RSA key for USB debugging yet.
device unauthorizedunauthorized (adb devices)This adb server's $ADB_VENDOR_KEYS is not setTry 'adb kill-server' if that seems wrong Meaning
The first connection shows an “Allow USB debugging?” dialog on the phone. If it was dismissed, the key revoked, or the adb keys regenerated, the device stays unauthorized.
Common causes
- Prompt on the phone not accepted (screen locked)
- USB debugging authorizations revoked
- adb keys changed (~/.android/adbkey)
- Charge-only cable/USB mode
⚡ Quick fix
- Unlock the phone and accept the prompt (tick Always allow)
- Revoke authorizations in Developer options and reconnect
- Restart adb server
Detailed fix by platform
ADB
- kotlin
adb kill-server && adb start-server adb devices
How to diagnose
- Phone — Prompt visible?
- Keys — ~/.android/adbkey present?
- Cable — Data-capable?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- ActivityNotFoundException ActivityNotFoundException: Unable to find explicit activity class; have you declared this activity in your AndroidManifest.xml?
- adb server version doesn't match adb server version (41) doesn't match this client (39); killing...
- Can not perform this action after onSaveInstanceState IllegalStateException: Can not perform this action after onSaveInstanceState (fragment transaction)
Most viewed in Android
- Could not resolve Gradle: Could not resolve all files for configuration / Could not resolve dependency
- Unsupported class file major version Gradle: Unsupported class file major version / Android Gradle plugin requires Java 17 to run
- INSTALL_PARSE_FAILED_NO_CERTIFICATES INSTALL_PARSE_FAILED_NO_CERTIFICATES / App not installed as package appears to be invalid
Other ways to find it
Where this error sits
Origin: On your device. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 13 Oct 2026