I've gotten a VM accelerated Android emulator (4.2.2, API 17) working using Intel HAXM (on a Mac). I installed the Google Maps SDK using these instructions, which is basically this answer to a previous SO question - Google maps SDK with new Intel Atom x86 emulator - but with pictures.
Therefore, the emulator has access to Google APIs. However, I need to enable location access for Google apps. This is usually done through the Google Settings app, but since the emulator was created targeted to API 17 (not Google APIs 17), Maps and Google Settings are not installed.
Where can I find the .apk for Google Settings in order to install it? It would be even better if there was a way to permanently keep it on the emulator (so that -wipe-data does not delete it).
(I know I need to enable location access because of a problem I was running into earlier. See my previous question here.)
There is now a new x86 system image available which has the Google APIs. Install it from the SDK manager - it's under API 19 and called "Google APIs (x86 System Image)". Using an emulator created from that image you should find you have all the Google APIs you could previously only get on ARM system images (I have only tested Maps v2 so far, but it worked).
As per Google Android Map Api v2 ypu can't run it on an Android Emulator; you need a real device to test your apps. To run a app which uses Google Maps v2 you need two applications already running on the device
1. Google Play Services (com.google.android.gms.apk)
2. Google Play Store (com.android.vending.apk)
Follow this guide here to download and install the latest version of these two apk's using adb commands.
Related
I am receiving error:
AppName won't run unless you update Google Play services.
Update
Emulator is not showing option for updating Google Play Services.
Configurations
Emulator:
Android 8.1 (Oreo)
Google APIs Intel x86 Atom System Image.
Following is installed:
Build tools 27.0.3
Android Emulator 27.2.0
Google Play Services (Version 48)
Android Studio 3.1 Canary 9 running on Ubuntu.
Tried many solutions on this website but no success.
You Use That Emulator Which have Playstore Like this shown in Image.
Now even better solution exist: using AVD image with build-in Google Play Services. It will enable you to use Google Services including Google Play. Also you will be able update it without re-creating AVD image.
For further information check this post
https://www.google.com.pk/url?sa=t&source=web&rct=j&url=https://stackoverflow.com/questions/14536595/how-to-download-google-play-services-in-an-android-emulator&ved=2ahUKEwjwz76G5u7ZAhUMCuwKHdVFAH4QFjADegQIBxAB&usg=AOvVaw1NNhhmar8bv8PoXT5o9B0q
You must have an Emulator with Google APIs included. Depending in the version of Google Play Services libraries used in your project you may require a higher API level emulator with Google API included.
An emulator with Android 8.0 (API level 26) with Google API (Google Play) included should be enough.
Like this image
How to set the target on genymotion emulator like this (Google APIs)?
There's no Google APIs equivalent images for Genymotion. If your app needs anything that is not in vanilla AOSP, then you need to install all the Google Apps (like Google Play Services etc) separately.
I can make an emulator with Marshmallow. I can see the target (with Google APIs), but when I select that it defaults back to a similar setting but without the Google API's. Without it I get the message to update the google play service.
Settings I choose but shouldn't matter:
Phone, Nexus 5, 4,95", 1080x1920, xxhpdi.
Marshmallow, 23, x86, Android 6.0 (with Google APIs)
The goal is to get by the 'Update Google Play Service' message to test apps on an emulator.
When I create new target with Google APIs 23 using Android Studio —— AVD Manager,I meet the same trouble with you. So I turn off Android Studio,just open AVD Manager only,try to create target with Google APIs,I succeed.
You can try another way to create new target,command line is a good choice,you can see the log to confirm where the problem is.
Open SDK Manager , and install Google APIs Intel x86 and google APIs if they re not installed
I'm trying to Install Google play on my Eclipse Emulator, but It don't work. The Google play icon does not appear when I start my emulator.
I have followed the guide for setting up Google Play Services: https://developers.google.com/android/guides/setup
I there any options to be made on my emulator to get It work? Should I use the Google APIs as Target In my emulator? Currently I have these settings:
Device: Nexus 5
Target: Android 5.1.1 - API Level 22
CPU/ABI: Intel Atom (x86_64)
Is there any additional packages or something that I must Install to get It work?
There will be one bundle file that needs to be installed into your system and just drag that bundle file to your emulator.
I am using genymotion for testing my apps and it is used for quick response.
I have tried and it works fine for me.
Any queries and suggestions you need, feel free to contact me without any doubt.
It is still not clear if we can test Google Map v2 on Android emulator or NOT.
It is all about Play Service and they "Google Android Team" have announced the following:
On Android-Developer Blog
They are saying
To simplify your testing, we've also released an updated Google APIs emulator image that includes Google Play Services 3.2. You can download the image through the Android SDK Manager.
On Android Developer Site They are saying
To test your app when using the Google Play services SDK, you must use either:
•A compatible Android device that runs Android 2.2 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.
But, I still not able to run the Map on Android Emulator with Google API 18 (4.3).
What is the right answer?
This wasn't possible initially, but it seems the new version of the google play services apk is making it possible.
Check out the answer here here
Unfortunately, I haven't been able to try it out myself.