Home > Back-end >  Android Studio: emulator & physical device: "Device is waiting for you to grant permission for
Android Studio: emulator & physical device: "Device is waiting for you to grant permission for

Time:04-12

Android studio is not launching my device with the app, instead just the device alone. After the app is built with gradle it spins saying "waiting for device to come online".

Things I've tried:

  • In developer settings revoking permissions, turning on usb debugging, connecting and disconnecting a physical device
  • Wiping data and cold booting emulators
  • Different emulators on api 29 and 30, Pixel 3, 3a, 4
  • Changing from Media Device (MTP) to Camera (PTP)
  • Restarting my computer, Android Studio, Invalidating caches
  • Different JDKs, JVMs
  • Reinstalling Android Studio
  • Adjusting the permissions of Android studio using sudo chown -R $USER <path>
  • Restarting the abd server

Any suggestions would be great, here is a screen shot of the error as described for reference:

Emulator and physical device waiting to grant permissions

CodePudding user response:

Reading many questions along these lines I found a suggestion to run adb devices. Doing that revealed emulator-5554 unauthorized, and googling that showed a stack overflow question with the solution:

enter image description here

  • Related