Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Emulator "Allow USB Debugging" dialog close right after showing

I'm trying to debug with Android R in Pixel emulated devices w/ PlayServices but the "Allow USB Debugging" dialog instantly close right after showing, so I can't click in "Allow" to AS connect to the AVD. I went to Developer options in Android to switch off and on again the USB debugging, but again the dialog close imediatelly right after showing. I tried kill/star ADB and unistalling all AS/user configs/etc and reinstalling again but didn't solve. Anyone has a clue?

like image 532
Maurício Lima Avatar asked Sep 16 '20 14:09

Maurício Lima


2 Answers

Seems like this issue is related to your emulator's API version, after some testing I found that Pixel 4 API 30 have your problem, while others don't.

Versions

Another odd thing about the box is that it will ask you again for permission when you start a new session, even though I clicked the "always allow this device" button.

like image 87
Ng Lok Chun Avatar answered Oct 28 '22 12:10

Ng Lok Chun


Wipe data and it will pop up and stay. Check the "always allow debugging on this device" box and you should be good to go.

like image 30
MandelMech Avatar answered Oct 28 '22 11:10

MandelMech