16

This issue has been fixed by Google in the newer AS/Emulator

NOTE: Only some API's is available with Playstore, if the one you chose is not available at the creation time, follow this guide

The AVD GUI does NOT allow the selection of Play Images for some reason anymore! enter image description here

CryptoCode
  • 945
  • 6
  • 19

3 Answers3

44

Since you cannot select the Play store image anymore you need to edit some files

NOTE: This may also work in Visual Studio (not tested - some feedback will be apreciated!)

  1. Load the image with SDK manager SDK Platforms

  2. Create a device with the correct API and Hardware profile and Finish AVD

  3. Before you start this new AVD you need to Edit the files as follow Show on Disc

  4. Edit config.ini (I use VIM but any editor will work) Edit the following lines in the file

PlayStore.enabled=true
image.sysdir.1=system-images\android-32\google_apis_playstore\x86_64\
tag.display=Google Play
tag.id=google_apis_playstore

Note: if you are on a Mac with Apple chip, set this line differently:

image.sysdir.1=system-images/android-32/google_apis_playstore/arm64-v8a 
  1. Start the AV Device and check if the Play Icon is available - Test it By logging in! Play Store!
  2. ALL DONE!
Clint Eastwood
  • 4,995
  • 3
  • 31
  • 27
CryptoCode
  • 945
  • 6
  • 19
  • 1
    I tested Android 13 with Pixel 7 Pro in 2023 (on M2 Mac), and it still works as described. The only change required is this line `image.sysdir.1=system-images\android-32\google_apis_playstore\x86_64` in `arm` based Macs should be `image.sysdir.1 = system-images/android-33/google_apis_playstore/arm64-v8a` – Mihkel Selgal Jun 03 '23 at 19:14
  • Yes Thank you, I (sobbing) don't have a Mac to test. – CryptoCode Jun 04 '23 at 22:16
  • @Clint Eastwood, at the time of this article, the option to select Google play images was not available.! – CryptoCode Jun 13 '23 at 10:04
15

In the latest Android Studio (Electric Eel), you need to launch SDK Manager, and under SDK Platforms check the "Show Package Details" box. Then select the Google Play images:

enter image description here

IgorGanapolsky
  • 26,189
  • 23
  • 116
  • 147
7

Looks like Google Play support is now at the device level, rather than when selecting the OS. And the first devices in the list don't have it.

Ran into the same confusion - turns out needed to scroll down more.

Gene Bo
  • 11,284
  • 8
  • 90
  • 137
  • Not all of the Sizes has that, only a few and far in between. In the old days it used to be there for all Sizes. Tablets for instance - none have it! – CryptoCode Jan 28 '23 at 17:00
  • Yes as always, for a long time it was NOT available, and it is NOT available for all Desities Do NOT spread mis-information please – CryptoCode Mar 21 '23 at 23:53