How Can I Get Google Play to Work on Android Emulator in Android Studio Bumblebee +
Asked Answered
I

3

17

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

Intended answered 10/4, 2022 at 9:7 Comment(0)
I
48

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!
Intended answered 10/4, 2022 at 9:7 Comment(4)
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-v8aPich
Yes Thank you, I (sobbing) don't have a Mac to test.Intended
@Clint Eastwood, at the time of this article, the option to select Google play images was not available.!Intended
This solution worked for on MacOS, Android API 34, X64_86, Pixel 6 pro.Aristotle
C
16

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

Cry answered 9/6, 2022 at 20:49 Comment(2)
still google play didnot show after installing system imagesDvina
@MuhammadWaqas Try using Android Studio Canary.Cry
B
9

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.

Baseboard answered 27/1, 2023 at 22:10 Comment(2)
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!Intended
Yes as always, for a long time it was NOT available, and it is NOT available for all Desities Do NOT spread mis-information pleaseIntended

© 2022 - 2024 — McMap. All rights reserved.