19

I uninstall my old android studio and delete folders from the previous installation. Then, I install the new version of android studio. But, I am having the same issue as the one on Android adb devices unauthorized

Basically, the phone will not display a message which asked me to confirm.

I found the adbkey.pub and adbkey under C:/Users/$Name/.android are missing. Did anyone know how to regenerate them?

Thanks,

Community
  • 1
  • 1
Jerry Yuan
  • 685
  • 2
  • 6
  • 16

2 Answers2

25
  1. Delete the folder "C:/Users/$Name/.android"
  2. Restart the adb server (adb kill-server; adb start-server)
  3. Next time you use adb to access the device, a popup will appear on device asking to allow to connect to adb server
kayk
  • 188
  • 1
  • 10
Art
  • 903
  • 9
  • 20
  • 1
    Which folder? That could stand clarification. The only paths I see mentioned are from Windows, I'm under Linux. I eventually got an authorization popup on the phone, that seems to have gotten me past the error – Alan Corey Apr 18 '18 at 16:52
  • 6
    ~/.android is the folder you need to delete – Art Apr 18 '18 at 17:24
  • 1
    Please note also need to restart your adb server (or your computer) after deleting the folder (adb kill-server; adb start-server) – Philip Sep 03 '19 at 01:25
  • I didn't restart the computer, but looked into taskmanager for adb.exe and kill that process. after which the message to allow usb debugging on this host is shown again and it worked again. – Flecibel May 26 '21 at 12:07
  • 1
    rm -rf ~/.android – majurageerthan Feb 09 '22 at 14:35
-8

All you need to do is install Samsung USB Drivers for Windows.

Here's the link : http://developer.samsung.com/galaxy/others/android-usb-driver-for-windows

Robert Columbia
  • 6,313
  • 15
  • 32
  • 40