Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Emulator keep showing allow USB debugging prompt

I just installed Android Studio Bumblebee (2021.1.1 Patch 2)

But when I try to run my emulator, I got allow USB debugging prompt that always showed up even after I press allow, check the always allow option, or even cancel it. I already tried to restart my adb server and remove and create a new emulator, wipe the data and try to cold boot it, but the issue persists.

Does anyone know what is the root cause of this issue and how to solve it?

I can still develop using real device but I do want to know if this issue able to be resolved.

emulator keep showing prompt

Emulator: Google Pixel 3 API 30

like image 974
amerw Avatar asked Apr 26 '26 03:04

amerw


2 Answers

If the "Allow USB debugging" message is shown again and again then this is usually a problem of the host, not of the Android device.

You should reset the Android ADB authentication key by deleting it and then restarting ADB. A new authentication key (pair) will be generated which will hopefully work.

To do so delete the files adbkey and adbkey.pub in the folder ~/.android/.

Then execute adb kill-server and finally restart adb by executing adb start-server.

Note that this will reset USB ADB authorization of all devices you had connected to that PC/user account.

like image 93
Robert Avatar answered Apr 28 '26 15:04

Robert


I able to resolve this issue by creating new AVD with X86_64 system image. ADB devices

Emulator running

like image 42
amerw Avatar answered Apr 28 '26 15:04

amerw



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!