user10927125
user10927125

Reputation:

Emulator Stuck: Revoking microphone permissions for Google App

In Android Studio I created an emulator...
avdmanager create avd --force --name testAvd --abi google_apis_playstore/x86 --package "system-images;android-29;google_apis_playstore;x86"

and tried to start it...
emulator -avd testAvd -no-boot-anim -no-snapshot-save -no-audio -no-window -gpu off -debug -all.

It stucks now at
emulator: Revoking microphone permissions for Google App..

Does anybody have an explanation and a solution for this problem?

Thanks in advance for any reply.

Upvotes: 9

Views: 2888

Answers (2)

Andy Shephard
Andy Shephard

Reputation: 1904

Add the following call to your command:

adb wait-for-device

example:

emulator -avd testAvd -no-boot-anim -no-snapshot-save -no-audio -no-window -gpu off -debug -all & adb wait-for-device

If you encounter an error saying adb: command not found you need to add paths into your bash/zsh config

export PATH=~/Library/Android/sdk/tools:$PATH
export PATH=~/Library/Android/sdk/platform-tools:$PATH

Upvotes: 1

Ofentse Baboile
Ofentse Baboile

Reputation: 41

In Visual Studio go to Tools-> Android -> Restart Adb Server did it for me

Upvotes: 4

Related Questions