18

I know that on a normal device I have to authorize the debugging process, but Authorizing it on an emulator is my first time.

I just installed my first emulator on my home pc to do some work stuff, and this poped up.

Any idea what is the cause or is it normal for android o api 26 google play SDK?

PS: I am using windows version at home.

Mohammad Tabbara
  • 1,438
  • 1
  • 16
  • 31

14 Answers14

12

Issue Resolved.

Step 1- Made a new emulator(Any). Step 2- then fixed another problem the black screen by changing the settings to use hardware graphics.(Dunno if this problem was related to the bug)

And Bam every thing worked.

Mohammad Tabbara
  • 1,438
  • 1
  • 16
  • 31
3

when this happens you can request permission through the emulator demonstrative video

But on the android Q api 29 emulator, when USB debugging is requested, the alert is gone before it can be confirmed, and the emulator bugs, preventing the emulator from connecting. I am not able to solve, just resetting and losing everything to solve.

AllanRibas
  • 678
  • 5
  • 14
2

TOOLS-->AVDMANAGER

Image1

Image1

Click on tooltip on the right side, you can see wipe data before doing that turn off your emulator.

This Worked for me.

Jitesh Prajapati
  • 2,533
  • 4
  • 29
  • 51
lava
  • 6,020
  • 2
  • 31
  • 28
2

I was facing the same issue and tried all most all the suggested steps but following worked for me :

Steps:

  1. Delete all the emulators with google play.
  2. Create new emulator without google Play .
  3. Now if you run the emulator, no authorization issue will be there

Or

An another approach to fix this issue is : Steps:

  1. let your emulator launch
  2. Go to settings and enable the "USB debugger" option as you normally do in real time devices(5 click on Developer Options->build number)
  • Deleting ALL emulators and creating a new one without Google Play fixed it for me. After that I was able to create a new emulator with Google Play and that one worked as well. My problem started after moving my emulators to another storage partition, I probably didn't update all relevant .ini files. – npace Sep 15 '20 at 06:57
1

I found a mismatch between the .android/adbkey* files associated with the user running the process running adbd, and the same file associated with the user running the emulator.

I don't know about windows, but this is possible in Linux if you run adb as root to work around file permissions.

Fix: As the user running the emulator, type this into a command shell:

adb kill-server; adb devices
Tim Baverstock
  • 415
  • 4
  • 11
1

Delete your Emulador, then Create an emulador without google play services, it can be Android Q (Android 11). It worked for me.

0

For this to work for me I had to start a new emulator from android studio with Oreo instead of Pie as a system image.

0

Just delete the ~/.android folder.

0

I also face the same issue and its generated because I copied my SDK from one PC to another PC with Same configuration(Software and Hardware). Now I create an emulator on Pie and also tried Oreo but unauthorised comes for both.

Solution: I delete my build tools, platform tools, emulator only not complete SDK and download all of them again. Now I create my emulator for all type of Version and now no unauthorised error for all type of emulators.

ParikshitSinghTomar
  • 417
  • 1
  • 4
  • 28
0
  1. Keep the Emulator on

  2. Delete android folder using

    rm -rf ~/.android

  3. Then restart adb

    adb kill-server

  4. You should get a prompt on the emulator to allow USB Debugging

  5. View the device status

    adb devices

This should fix the issue, I used this to fix when I was having issues launching the emulator from expo when making a react native app.

Kandarp
  • 893
  • 7
  • 8
0

Had the same issue, none of the answers here worked, eventually found the following worked for me:

Create a new emulator without Google Play and start it, visual studio detects it on first start and the device will be authorised.

Luke Alderton
  • 3,198
  • 1
  • 23
  • 34
0

I fixed this issue on my Arch Linux while I'm developing Flutter apps, by deleting all of the emulator devices and create a new emulator without the Google Play Store.

Also, in the Graphics setting don't forget to choose Hardware Graphics instead of Automatic and the device will be available and detected.

0

Create an emulador without google play services, it can be Android Q (Android 11). It worked for me.

Alex
  • 265
  • 3
  • 6
0

I fixed it on Win10. When adding new device, choose Android 11 (without Google play)

Riccardo
  • 1,083
  • 2
  • 15
  • 25
Murcha
  • 1
  • 1