Note*: For this you should have atleast any one device created before with
google play inbuild to install the dependencies.
Easiest way: You should create a new emulator, and before opening it for the
first time, follow these easy steps:
1. Locate the directory where the emulator has been created. For example, in
Windows go to: C:Users[user].androidavd[your virtual device folder]
2. Open file config.ini with a text editor like Notepad.
3. Locate PlayStore.enabled key and change its value to true:
PlayStore.enabled = true
4. Locate image.sysdir.1 entry and change:
google_apis -> google_apis_playstore
5. Locate tag.id entry and change:
google_apis -> google_apis_playstore
Example 4:
image.sysdir.1 = system-imagesandroid-30google_apisx86
to
image.sysdir.1 = system-imagesandroid-30google_apis_playstorex86
Example 5:
tag.id = google_apis
to
tag.id = google_apis_playstore