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.
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
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
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 Thread
Related Thread
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
I prefer testing on a real device which has google play services installed
You 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.
https://stackoverflow.com/a/11213598/1405008
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:
If 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.
Setp 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 .
1)adb install com.google.android.gms-6.7.76_\(1745988-038\)-6776038-minAPI9.apk
2)adb install com.android.vending-4.4.22.apk
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.
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.
I recently started developing for Android, and I have come into trouble when trying to use Google Maps in my app. I downloaded the Google Maps API v2 for Android, and have already performed all the required steps according to Google Developers Site.
My problem is that although the app runs, in the place where the maps should be displayed there is a texts saying that my device is missing Google Play Services.
I have already downloaded the Google Play Services from the SDK, imported the library into my project and also importing the .JAR file.
I am using Netbeans, not Eclipse, so many solutions I have found over the web aren`t useful for me. I hope you can help me with this.
Unfortunately, you can't use the emulator to run apps that use Google Play services. From http://developer.android.com/google/play-services/setup.html: "Google Play services is not supported on the Android emulator — to develop using the APIs, you need to provide a development device such as an Android phone or tablet."
From google's own site http://developer.android.com/google/play-services/setup.html
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. Note: Only Android 4.2.2 and higher versions of the Google
APIs platform include Google Play services.
I had this same problem and found solution:
Here are the updated gms and vending files. Same instructions as before: Create a new emulator with any cpu/abi, a non google-api target (versions 10-17 work) and gpu emulation on or off, and then install the files:
adb install com.android.vending-20130716.apk
adb install com.google.android.gms-20130716.apk
If you are upgrading an existing emulator then you might need to uninstall previous versions by:
adb uninstall com.android.vending
adb uninstall com.google.android.gms
Bellow link contains a solution that works with Android 4.2.2 or higher
How to install Google Play Services in Android Emulator
1.1 Start your emulator. Disconnect any other Android device (such as your smartphone) from computer.
1.2 Download these two files
com.android.vending-19032013.apk : http://www.mediafire.com/download.php?7jfar2v1bzx6v59
com.google.android.gms-19032013.apk : http://www.mediafire.com/download.php?4o9fz413uavlblf
1.3 Open command console, go to \platform-tools
Install two files above with command
adb install \com.android.vending-19032013.apk
adb install \com.google.android.gms-19032013.apk
Yes, you can use Google maps on emulator. However, it's not officially supported, so takes some work. I had the best success following the info on this link.
I found this, i hope it helps you ;)
Installing Google Play on Android Emulator
Run Google Play Services in your emulator
If anyone is still experiencing this issue, first try to create your emulator with the Google API's as the platform target. After doing so, I noticed that my Google Play Services was not the correct version on the emulator.
While trying to hack together a solution, I stumbled upon the GoogleApiAvailability class here. Google did a phenomenal job handling compatibility issues.
GoogleApiAvailability.isGooglePlayServicesAvailable(Context) returns an integer status code, which can be fed directly into getErrorDialog(Activity, errorCode, requestCode) which returns a Dialog that works perfectly right out of the box. If your Play Services are out of date, the dialog will redirect you to an updater... If they are missing, it will redirect you to an installer, etc...
Thought I would share this great feature in case anyone is looking for a fix that would work in production code as well as testing.