Google Play Services does not work on Android API level 11 emulator

I am developing an application that uses Google Maps, but every time I go to the Activity Map, I get this message: This app won't run without Google PLay services, which are missing from your phone . I use the Google API (Google Inc.) - API level 11. It should work because it is a system image with Google Play services.

I am using Android Studio and using the com.google.android.gms:play-services:+ dependencies. Can someone tell me if there is something that I am missing?

Thanks!

+6
source share
2 answers

I solved my problem: I created a new Android virtual device, but not with Google APIs, but Android API 11.

I needed to manually install Google Play Services and the Google Play Store, but not using the Google APIs via the command line.

This was useful to me:

Configure Android emulator to run Google Map v2

And this:

Android Google Maps API V2 runs on the emulator and runs at API level 10 or 9 or 8 or Android 2 3 3

+4
source

The device must have Google Play services installed.

You can check if the phone / device / emulator is installed using this: http://developer.android.com/reference/com/google/android/gms/common/GooglePlayServicesUtil.html#isGooglePlayServicesAvailable(android.content.Context)

It seems that Google Play services are not supported by the emulator: How to download Google Play services in the Android emulator?

+1
source

Source: https://habr.com/ru/post/972965/


All Articles