Google Play Services Android 4.4.2
Google play service is just a library to create application but in order to use application that use google play service library, you need to install google play in your emulator.and for that it need the unique device id. And device id is only on the real device not have on emulator. So for testing it, you need real android device.
For the emulator I have below, I am getting the error message that 'Google Play Services not installed on the device'.
As per the developer site, it says that 'The Android emulator with an AVD that runs the Google APIs platform based on Android 4.2.2 or higher.
Not able to understand if the emulator is running 4.4.2 then why is google play services not present?
Some related threads, but no resolution. (adding these just to point out this issue is not a duplicate):Related ThreadRelated Thread
6 Answers
Quoting docs
If you want to test your app on the emulator, expand the directory for Android 4.2.2 (API 17) or a higher version, select Google APIs, and install it. Then create a new AVD with Google APIs as the platform target.
Needs Emulator of Google API'S
See the target in the snap
Snap
I prefer testing on a real device which has google play services installed
RaghunandanRaghunandanYou will not able to test the app using the Google-Play-Service library
in emulator. In order to test that app in emulator you need to install some system framework in your emulator to make it work.
Refer the above answer to install Google play service on your emulator.
If you happen to not have the image, download it via the SDK manager:
Karl MorrisonKarl MorrisonIf you're using Xamarin, I found a guide on their official forum explaining how to do this:
- Download the package from the internet. There are many sources for this, one possible source is the CyanogenMod web site.
- Start up the Android Player and unlock it.
- Drag and drop the zip file that you downloaded onto the Android Player.
- Restart the Android Player.
Hereafter, you might also need to update the Google Play Services from the Google Play Store.
Hope this helps for anyone else who has troubles finding the documentation.
DemitrianDemitrianSetp 1 : Download the following apk files. 1)com.google.android.gms.apk (https://androidfilehost.com/?fid=95916177934534438) 2)com.android.vending-4.4.22.apk (https://androidfilehost.com/?fid=23203820527945795)
Step 2 : Create a new AVD without the google API's
Step 3 : Run the AVD (Start the emulator)
Step 4 : Install the downloaded apks using adb .
adb come up with android sdks/studio
Step 5 : Create the application in google developer console
Step 6 : Configure the api key in your Androidmanifest.xml and google api version.
Note :In step1 you need to download the apk based on your Android API level(..18,19,21..) and google play services version (5,5.1,6,6.5......)
This will work 100%.
google play service is just a library to create application but in order to use application that use google play service library , you need to install google play in your emulator.and for that it need the unique device id. and device id is only on the real device not have on emulator. so for testing it , you need real android device.
Waqar AhmedWaqar AhmedGoogle Play Services Missing
protected by Community♦Feb 8 '17 at 11:45
Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?