This packages will only work for Android 4.2.2 and higher in these answer i am taking an example of (API 17).and it will do work .
Let’s begin by launching the SDK manager. We will first need to ensure that Android 4.2.2 (API 17) and higher is installed.
[shubham@localhost tools]$ ./android sdk
If not, check the top level element, “Android 4.2.2 (API 17)”, click “Install 6 Packages”, and accept the license agreement.
Setting up the image
To get the right image for your virtual device manager:
Once installed, close the SDK manager and launch the AVD manager. Here we’ll need to create a new AVD which utilizes the Android 4.2.2 platform and has snapshots enabled so that any changes we make are persistent.
[shubham@localhost tools]$ ./android avd
Next we need to pull down the appropriate Google Apps package. Using Android 4.2.2 (API 17) and higher we must use the appropriate package according to below link.
[https://www.androidfilehost.com/?w=files&flid=5649][2]
Once downloaded, extract the archive. In order to install Google Play, we’ll need to push the following 3 APKs to our AVD (located in ./system/app/):
- GoogleServicesFramework.apk
- GoogleLoginService.apk
- Phonesky.apk
However, before we do, we need to make some minor modifications to our AVD. Let’s launch the newly created AVD using the following command. Note that we’ve specified a partition size of 512MB. This is to ensure that our AVD has enough capacity to install the Google Play Store and its dependencies.
[shubham@localhost tools]$ ./emulator -avd Test -partition-size 512 -no-boot-anim
This may take several minutes the first time as the AVD is created. Once started we need to remount the AVD’s partition and modify the permissions of “/system/app/” as this is where our packages will be installed to.
[shubham@localhost platform-tools]$ ./adb remount
[shubham@localhost platform-tools]$ ./adb shell chmod 777 /system/app
And finally, we can push these APKs to our AVD:
[shubham@localhost platform-tools]$ ./adb push ~/system/app/GoogleServicesFramework.apk /system/app/
[shubham@localhost platform-tools]$ ./adb push ~/system/app/GoogleLoginService.apk /system/app/
[shubham@localhost platform-tools]$ ./adb push ~/system/app/Phonesky.apk /system/app/
Now if your emulator is as slow as mine it may take a few minutes for the package to be installed. You’ll know if the installation hasn’t yet completed if the launcher process repeatedly crashes on you ;)
After a few minutes, we should see the Google Play package appear within the menu launcher. After associating a Google account with this AVD we now have a fully working version of Google Play running under your emulator.
Please refer to this link :[http://www.flinkd.org/2013/12/installing-google-play-on-the-android-emulator-api-18/][3]
That should do the work. For more information and tutorial you can watch these video tutorial :-[https://www.youtube.com/watch?v=Nq5mng20PC8][4]
[1]: https://i.stack.imgur.com/Xn2cX.png
[2]: https://www.androidfilehost.com/?w=files&flid=5649
[3]: http://www.flinkd.org/2013/12/installing-google-play-on-the-android-emulator-api-18/
[4]: https://www.youtube.com/watch?v=Nq5mng20PC8