Some AVD profiles don’t have Google play store or you have decided to customize your own ADV profile and you realised you don’t have Google services.
Start by accessing the avd config.ini file on your local found in the following directory
~/.android/avd/<DEVICE_ID/NAME>/config.ini
Viewing config.ini will display a list of properties. Here we need to alter 4 properties.
Default (Pixel_5_API)
PlayStore.enabled = false
image.sysdir.1 = system-images/android-30/google_apis/x86/
tag.display = Google APIs
tag.id = google_apis
Alter the properties to
PlayStore.enabled = true
image.sysdir.1 = system-images/android-29/google_apis_playstore/x86/
tag.display = Google Play
tag.id = google_apis_playstore
Android studio emulator device manager click the download button to update the emulator with the new changes.