Development issue/problem:
For the emulator I have below, I get an error message that Google Play Services is not installed on the device.
According to the developer’s website, this is an Android emulator with AVD running on the Google API platform based on Android 4.2.2 or higher.
I do not understand, if the emulator works in 4.4.2, why not Google Play services?
A few related subjects, but no resolution. (I only add them to emphasize that this problem does not reoccur):
Glued wire
How can I solve this problem?
Solution 1:
http://developer.android.com/google/play-services/setup.html
Quote documents
If you want to test the application on the emulator, expand the directory for
Android 4.2.2 (API 17) or later, select Google API and install
. Then create a new DSA using the Google API as target platform
.
Requires the Google API S emulator.
See the objective in the context
Snap
I prefer to test on a real device with Google Play services installed.
Solution 2:
You cannot test the application with the Google Play service library in the emulator. To test this application in the emulator, you will need to install a system frame in the emulator to work.
https://stackoverflow.com/a/11213598/1405008
See the answer above about installing the Google Play service on the emulator.
Solution 3:
If you don’t have an image, download it via the SDK manager:
Solution 4:
If you use Xamarin, I found a tutorial on their official forum explaining how to do it:
- Download the package from the internet. There are many sources for this, one possible source is the CyanogenMod website.
- Start the Android player and unlock it.
- Drag the downloaded archive file to the Android player and drop it there.
- Restart the Android player.
You may need to update the Google Play services in the Google Play store in the future.
I hope this will help those who have trouble finding the documentation.
Solution No 5:
Setting 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 DVD without Google API
Step 3 : Start the AVD (Start the Emulator).
Step 4 : Install the apkas downloaded with 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 comes with android sdks/studio
Step 5 : Creating an application in the Google Developer Console
Step 6 : Configure the api key in your version of androidmanifest.xml and google api.
Pay attention:
In step 1 you have to download the apk according to your PI level (…18,19,21…) and the version of the Google Play service (5,5.1,6,6.5……).
It will work 100% of the time.
Solution No 6:
The Google Play service is only a library for creating an application, but to use an application that uses the library in the Google Play service, you must install Google Play in your emulator, which must have a unique device ID and a device ID only on the actual device and not on the emulator.
Good luck!
Related Tags: