Can't connect Nexus 4 to adb: unauthorized
Solution 1:
I had similar situation. Here is what I did:
Try to check and uncheck the USB Debugging option in the device. (if not working, try to unplug/plug the USB)
At some point, the device should show up a messagebox to ask you if you authorize the computer. After you click yes, the device is then authorized and the connection is hooked.
Solution 2:
I solved this problem without deleting any keys. Here's how:
- My device was connected to my computer via USB
- I made sure Eclipse and android device monitor weren't running.
- Typed at the commandline prompt: adb kill-server
- Typed at the commandline prompt: adb start-server
- After adb was restarted, I got a prompt on my device to authorize which I allowed.