0

I am developing react-native app and trying to run it on android emulator, which was created in android studio AVD manager.

from the point, where no adb processes are running in system, I am running:

$ adb start-server
$ emulator -avd Nexus_5X_API_27 -port 5555&

Emulator starts successfully, but shows as unauthorized in adb:

$ adb devices
List of devices attached
emulator-5555   unauthorized

I tried to revoke USB settings, restart adb server and restarting of emulator, and settings sdk home path in env, but it didn't helped...

How to make in authorized ?

Ilja
  • 1,205
  • 1
  • 16
  • 33

2 Answers2

1

Ref: ADB Android Device Unauthorized

Please check your Developer Option and find “Revoke USB Debugging Authorizations”.

If it doesn't, check your local adb private/public keys. If the keys are missing, it also leads to this error.

shawn
  • 4,305
  • 1
  • 17
  • 25
0

After lots of googling and playing with adb keys, solution was to completely remove /home/user/.android folder and create new virtual device in android studio

Ilja
  • 1,205
  • 1
  • 16
  • 33