Google Play Services Missing in Emulator (Android 4.4.2)

Google Play Services Missing in Emulator (Android 4.4.2)

http://developer.android.com/google/play-services/setup.html

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

Sample Image

I prefer testing on a real device which has google play services installed

How to download Google Play Services in an Android emulator?

Check out Setting Up Google Play Services which says:

To develop an app using the Google Play services APIs, you need to set up your project with the Google Play services SDK.

If you haven't installed the Google Play services SDK yet, go get it now by following the guide to Adding SDK Packages.

To test your app when using the Google Play services SDK, you must use either:

  • A compatible Android device that runs Android 2.3 or higher and includes Google Play Store.
  • The Android emulator with an AVD that runs the Google APIs platform based on Android 4.2.2 or higher.

updating Google play services in Emulator

Update On 18-Dec-2017

You can update Google Play Services via the Play Store app in your emulator just as you would on a physical Android device from API 24.

check Emulator new features added with stable update from Android Studio v 3.0

Google Play Support - From Google : We know that many app developers use Google Play
Services, and it can be difficult to keep the service up to date in
the Android Emulator system images. To solve this problem, we now
offer versions of Android System Images that include the Play Store
app. The Google Play images are available starting with Android Nougat
(API 24)
. With these new emulator images, you can update Google Play
Services via the Play Store app in your emulator just as you would on
a physical Android device. Plus, you can now test end-to-end install,
update, and purchase flows with the Google Play Store.


Quick Boot - Quick Boot allows you to resume your Android Emulator
session in under 6 seconds

Android CTS Compatibility

Performance Improvements - With the latest versions of the Android
Emulator, we now allocate RAM on demand, instead of allocating and
pinning the memory to the max RAM size defined in your AVD.

Virtual sensors

Wi-Fi support

GPS location and Many more...

OR

Update this SDK Build-Tools and Android Emulator to latest and this alert message will not come again,

Settings --> Android SDK --> SDK Tools(tab) --> Android SDK
Build-Tools

Sample Image

Update Google Play Store on Android Emulator (Exception:Google Play Services not available due to error 2)

I solved it by adding permission to manifest file com.google.android.providers.gsf.permission.READ_GSERVICES.

or the other way is to update your google services library.
I would suggest locating these files and then manually installing them via the adb like so:

adb -install "C:.........\com.android.vending-4452000.apk

adb -install "C:.........\com.google.android.gms-4452000.apk
or the greater version of services

Google Play Services on Android Emulator 4.2.2 or higher. Google Maps API demos won't run unless you update Google Play Services

Make sure you are using the Google APIs (Google Inc.) as your Emulator's target. and if this doesn't solve the problem, you can google the newest Google Play Services' apk and install it over adb install.

=-=-= edit =-=-=

It seems like there is a bug regarding to the Google Play services on the API level 22 emulator. I filed a bug for it.

https://code.google.com/p/android/issues/detail?id=176348&thanks=176348&ts=1433887196

Google Play services seems to be fine on API 21, and API MNC



Related Topics



Leave a reply



Submit