Can't connect Nexus 4 to ADB (Android Debug Bridge): unauthorized

I want to connect my Nexus 4 to adb and make it authorized.
1 answer

connecting nexus 4 to dba

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.