Reputation: 13
I enabled my phone to developer mode and turned on USB debugging etc.
When I try to run an android studio app on my phone I get the following message: device unauthorized. This adbd's $ADB_VENDOR_KEYS is not set; try 'adb kill-server' if that seems wrong. Otherwise check for a confirmation dialog on your device.
My phone is a samsung galaxy s5. Wondering how I can fix this. Some people told me I should use the original samsung cable.
Please advise.
Upvotes: 1
Views: 4419
Reputation: 20626
Follow those steps : (FIRST OPTION)
Unplug the USB from your pc
Turn screen on and unblock your phone
Connect it via USB to your PC
See the screen of your phone it will appear a dialog with a MAC address and you'll have to accept it
If those steps didn't work just go through (SECOND OPTION)
Go to platform-tools/.android
and delete adbkey
Go to C:Users/YOURUSERNAME/.android
and delete adbkey
Go to C:\Windows\System32\config\systemprofile\.android
and delete adbkey
Restart AndroidStudio
Upvotes: 6