What i am doing ::I am trying to use Maps in emulator
My emulator setup::
Error message::
What i have done ::
I have updated the google play services in sdk- still same error
I tried Gennymotion- no play services at present
I saw some people saying API-19 can run map but, still i am not able
to run
i don't have a device
Should i need to do something to update, if so what is it ?
Have you installed these
Install com.android.vending.apk (Google Play Store, v.3.10.9)
Install com.google.android.gms.apk (Google Play Service, v.2.0.12)
apks in emulator.
Follow these steps which I answered for another question..
Related
I'm trying to get the last known location in my Android Emulator from Android Studio by following this tutorial https://developer.android.com/training/location/retrieve-current.html
However, the callback method onConnectionFailed is called with error code: 2. When I show the error dialog in my emulator, it says:
Update Google Play Services
{app_name} won't run unless you update Google Play services.
UPDATE
when I click UPDATE button, I got an error message:
E/SettingsRedirect﹕ Can't redirect to app settings for Google Play services
I think the problem is because Google Play services is not included in the emulator. I tried following the answer here too Android Studio with Google Play Services, but it didn't work.
It says on Google documentation:
To test your app when using the Google Play services SDK, you must use
either:
1.) A compatible Android device that runs Android 2.3 or higher and includes Google Play Store.
2.) The Android emulator with an AVD that runs the Google APIs platform based on >Android 4.2.2 or higher.
Can somebody tell me how to do point 2 ?
My AVD is Nexus 5 API 22 x86
Here's the version chart 4.2.2 means it should API level 17 and up. So your AVD should be fine. Alternatively, you can download Google Play Services APK and install it through ADB shell. See this answer for more information.
However, even if the Play Services issue is solved, you can not get location updates in an emulator since it does not have GPS hardware. You can simulate location behavior through geo command as described here.
I am integrating Google Plus Sign In for my app. The only thing is I have everything updated in Android SDK but still when I run my app in Android Emulator, I get a error in Android Studio saying "Google Play services out of date. Requires 7327000 but found 6774480".
Android Studio doesn't allow me to use older version of Play Services.
I searched different ways to install latest Google Play Service offline (.apk) but it gives incompatibility error when run using "adb install gps.apk".
How is it like even the latest Android OS image has old version of Google Play Service installed and not even a update indicator in Android SDK for these services?
Use APK MIRROR, it contains all version of Google Play Services.
P.S. Remember to uninstall already installed version of Google PlayService from the device before installing the new one.
Thanks Murtaza for contributing to this but I found the solution in between all this. I was using Google API image in Emulator where the Google Play Services are already installed.
So we have 2 options of Uninstalling/Reinstalling them, of which NONE worked.
What I did was downloaded the APK from your given link and installed it on the Emulator without Google API image. It successfully installs in there and I got the updated Google Play Service installed on the Emulator.
I want to use Google Maps in my app
But when I run my app I get this error
This app won't run without Google Play services, which are missing from your phone. GET GOOGLE PLAY SERVICES
I tried other solutions like installing the google api from SDK Manager but did not work, and still get the same error.
Anyone can help me?
In order to run application that uses Google Play Services, your emulator or device must have Google Play Services installed.
In Android SDK Manager allows you to install emulator system images with preinstalled Google Play Services.
When you have those installed on your system, you can then create emulator that will be able to run your application.
Open AVD Manager and create new emulator. Make sure that you use some of Google API system images.
it looks like your device/emulator don't have gapps isntalled.
Google Play Services is coming with Google apps (called gapps). A great tutorial can be found here : http://forum.xda-developers.com/showthread.php?t=2528952
By the way, use CM11 gapps link.
Hi i am trying out Google fit.when i run the app on emulator it show an dialog that you need to update the play services to run the app but when i click on update nothing happens
my current version of Google play service on emulator is 5.0.53 and on installing using adb command it gives a duplicate certificate error ??
I am using Android L emulator and everything in the sdk manager is updated
You need Google play services 5.2.08 (or later) and I don't think it is available in the emulator yet only on dev images for nexus 5 & 7. Hopefully the new version of google play services will be released to the public soon.
https://developers.google.com/fit/preview
On LogCat i got warning "Google Play services out of date. Requires 4323000 but found 3136110".
i have tried all the solutions and use the apk files suggested on stackoverflow . But still got this message. please Help
I think you have to update google play service library, Open your SDK manager and
You will get screen like this, select google play services from extras just check mark it and select install packages and update it.
I think i got the same message yesterday, but my emulator updated Google play services via play store.
I had to install 'google play services' on my emulator via a zip file, I was following this guide: https://github.com/thecodepath/android_guides/wiki/Google-Maps-Fragment-Guide