29

If I add a new emulator image of a phone, I can select an image with Play Store.

phone

But when I try to add an image for a tablet, no option for Play Market is shown. Also, after installing any API, I can't find Play Market.

tablet

CoolMind
  • 26,736
  • 15
  • 188
  • 224
  • Did you find solution for this? – Yupi Sep 14 '18 at 22:42
  • @Yupi, sorry, I still have no a solution and postponed it. Several years ago I downloaded images with Google Services and tried to install them. Or used emulators (Bluestacks, Nox, Genymotion, etc), but they often install old versions of SDK. – CoolMind Sep 16 '18 at 19:11
  • Okay thanks for response. – Yupi Sep 16 '18 at 20:33

1 Answers1

36

As explained in this answer, https://stackoverflow.com/a/62680047/9905408

You should create a new emulator, before opening it for the first time follow these 3 easy steps:

1- In the AVD Manger go in the Actions overflow menu of the newly created emulator and click on "show on disk". Open "config.ini" with a text editor.

2- change "PlayStore.enabled=false" to "PlayStore.enabled=true"

3- change "image.sysdir.1 = system-images\android-30\google_apis\x86"

to

"image.sysdir.1 = system-images\android-30\google_apis_playstore\x86"

Adam Burley
  • 5,551
  • 4
  • 51
  • 72
Alan
  • 1,264
  • 1
  • 11
  • 21
  • 2
    I can't seem to get this to work. The message when starting the emulator is that the process has terminated. – heiligbasil Feb 23 '22 at 16:52
  • 2
    I guess first of all you need to be sure, you have needed system image (for example you can download it for phone emulator and just copy it path to tablet emulator config). And second point be sure you use correct slashes in the path =) in this comment they are for Windows system. – theroom101 May 09 '22 at 10:16
  • you can also edit `tag.display = Google Play` and `tag.id = google_apis_playstore` to make it show up in the Device Manager as a Google Play image. I had to Invalidate Caches and restart Android Studio to make this change take effect – Adam Burley May 11 '22 at 17:06
  • In my case (for Mac), for step 3, I had to change it to the following: "image.sysdir.1 = system-images/android-30/google_apis_playstore/x86/" Note the forward slash at the end. Thanks! – 220284 Jul 24 '23 at 04:39