I have project with Firebase from google. First I done simple chat activity - only sending messages with this database. Everything worked fine. But now I'd like to add another activity with authentication via email/password. In the same project on the same database and android emulator now I get message:
"Update Google Play services : ChatApp won't run unless you update Google Play services"
I looked around on both Google and StackOverflow past few hours and have found some information. However, I have not got it to work.
I created Nexus 5X emulator with API 25 and Target: Android 7.1.1(Google APIs) x86 and second Nexus 6 with CPU/ABI x86_64. Google Play services on both are in version: 9.8.79 and I use auth in version 10.0.1. I try to create new emulators, I updated everything as here was said I changed in Firebase settings ability to log via e-mail.
Really makes me wonder why everything worked previously and now with authentication is not.
I'm relatively inexperienced in Android development.
Thanks in advance.
At the time of this writing (Jan 20, 2017) the API level 25 emulators have a fairly version of Play services. If you want to use the latest client library version 10.0.1, you should use an emulator image that targets API level 24 instead.
The general rule is that the version of Play services on the device should be greater than or equal to the version of the client libraries you want to use. Therefore, the version 9.8.79 you see on the API level 25 emulators won't work with 10.0.1 client libraries. However, version 10.0.84 of Play services available on API level 24 should work fine.
The version of Play services available for emulators only updates when you there is a tooling update. There isn't a Google-sanctioned way of updating an existing emulator image with a new version of Play.
Related
I'm trying to integrate Firebase Performance Monitoring on an application in which I have already successfully installed Firebase (in fact, I'm already using Crashlytics in this app).
The documentation states that in order to use Firebase Performance Monitoring, the device must have Google Play Services installed.
However, my problem is that I've found what appears to be a bunch of inconsistencies between the documentation and the actual version of Google Play Services available in the Play Store.
The prerequisites section of the documentation states:
Before you begin, you need a few things set up in your environment:
A device running Android 4.0 (Ice Cream Sandwich) or newer, and Google Play services 16.1.2 or higher
Also, further in that same page, it says:
Test your app using an Android emulator with a recent image and Google Play services 15.0.0 or later, or using a test device with Google Play services 15.0.0 or later.
On the other hand, the Play Store app on my device (running Android 6.0.1) shows that I have Google Play Services up-to-date, having version 13.2.80, updated on September 6th, 2018:
On top of that, APK Mirror shows that the most recent stable version to the date is 14.3.66, updated on October 3rd, 2018
Nevertheless, the official release notes show that there are no 13.2.80 or 14.3.66 versions and that starting on version 15.0.0, launched on April 12th (almost six months before 13.2.80!), they use SemVer with different versions for their different products.
So my question is: how do I get the correct version of Google Play Services needed for Firebase Performance Monitoring installed on my device?
Any clarifications on why this 13.2.80 version that I have installed or the 14.3.66 version provided in APK Mirror are not mentioned in the official release notes would be appreciated, too.
You have not got an update by Google on your device (6.0.1), latest versions of Android OS are updated to the stable version of Google play services 14.3.66. So you can test your application on emulators or any other devices.
I can't receive firebase notifications on emulator behind proxy
But if I install the apk on an android device and then send a notification it is received.
I am using API 27 x86 image emulator.
App is compiled against API 27 with Target as well 27.
Any thoughts?
If you are building your app with version 11.8.0 of the Firebase SDK, the problem is likely caused by the emulator image not having a compatible version of Google Play services. The latest API 27 emulator image does not support 11.8.0
Look in the logcat at the time the app initializes for this warning: W/GooglePlayServicesUtil: Google Play services out of date. If you see that, the simplest option is to run with an API 26 emulator image, which supports 11.8.0.
The FCM setup instructions in the documentation explain that apps built with Firebase should check for a compatible version of Google Play services.
I recently began learning how to create Google Maps activities in Android app development, and have stumbled onto an issue with Google Play Services. Whenever I set my gradle build dependency to compile 'com.google.android.gms:play-services-maps:11.0.4', which is the most recent version of play-services-maps, the emulator screen gets stuck on the following view upon running my maps app:
I have allowed the app to sit there for over an hour, and nothing has changed or updated. As I've read in other StackOverflow questions, I can get the app to properly function by setting my gradle build dependency to an older version, such as compile 'com.google.android.gms:play-services-maps:9.0.0', but this limits my ability to use newer Android features and APIs in my apps, such as FusedLocationProviderClient.
I am running on Nougat 7.1.1, and have installed the following SDKs in an attempt to solve this Google Play Updating issue:
Android SDK Build-Tools
Android SDK Tools
Google Play APK Expansion Library
Google Play services
Support Repository > Google Repository
I haven't found any StackOverflow threads specific to this "Google Play services are updating" message. What can I do to resolve this issue?
Use API 24 or API 26 Android Emulator system images and you should be good to go. API 25 does not have the latest Google Play Store app pre-installed yet. Note on the screen shot that only these images are "Google Play" versions.
In addition to #Jamal Eason's answer, you may use Nexus 5 and Nexus 5X emulators which have Play Store. Check here. You may also try running on real android device connected via USB that supports google maps and having google play service installed.
Hi I am trying to run an Android Program I have created that can connect to Firebase with Authentication using email and password but it seems that I cannot even authenticate due to the fact of them saying my Google Play Service is not up to date.
I am stump here as I have the latest google play services according to my SDK manager
and I don't think it is my code's problem as when I use my friend's phone for debugging it works but not when I am using the emulator.
How can I update my google play services in the Android Studio built-in emulator.
Since Google introduced Google Play Store images in Android SDK Tools 26.0.0 now emulators comes with installed Google Play Store.
When creating Emulator use images that support Google Playstore (currently Nexus 5 and Nexus 5x with android O)
From 26.0.3
Adds a new tab in the extended window for Google Play Store images that displays the Play Services version and a button to check for updates to Play Services.
Edit:
Make sure that you use emulator with playstore is installed. Check if you have sdk manager -> sdk platforms -> Android 8 -> Google Play ... system image installed. Download it. Create new emulator using that image.
I had the same issue and spent half a day working it out.
In your emulator, go to settings->apps->Google Play Services and compare the version used to what appears in your build.gradle file.
In my case the emulator was running an earlier version and no amount of updates seemed to change it.
In build.gradle, I changed the following:
compile 'com.google.android.gms:play-services:9.6.1'
to
compile 'com.google.android.gms:play-services:8.+'
After which I restarted android-studio and it worked flawlessly.
I was facing same issue, but i downgrade my play services version in build.gradle.
settings->apps->Google Play Services application check image
my google play services version is 10.2.98, that's why we need google-play-services(in module level build.gradle) version lower than our emulator's library version.
set the lower version from here, we can see 10.2.6 is better and set it in build.gradle like this
compile 'com.google.android.gms:play-services-places:10.2.6'
and just simple, run app again.
Try to download and install the latest APK for Play Services as stated in this thread.
Based from Google documentation,
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.
Try to navigate to settings--> apps in your emulator and then find Google Play Services. Check the version number and use it in you build.gradle. To update it with the latest version, you can see it in these documentation and SO question.
Be noted that updates might not reach all users immediately, so your app should verify the version available before attempting to perform API transactions.
I have integrated Google Plus in Android App.I am using Android SDK version 4.2.2. But I got this error while performing sharing post on google plus :
Google Plus Service Out of date
and
ConnectionResult {statusCode=SERVICE_VERSION_UPDATE_REQUIRED, resolution=null }
I want to run Google Plus Posting on emulator, not on device.
Any help will be appreciated.
I got this error simply because Google Play Services actually were out of date when running on the emulator. Apparently Google hasn't updated Google Play Services on "old" emulators (such as Android 4.2.2). Using the Google API 19 (Android 4.4) emulator works for me.
Should work with Android 4.2.2 and other when running on a physical device though (where Google Play Services on the device is actually updated).
Here's the issue thread regarding this problem: https://code.google.com/p/android/issues/detail?id=57880. The old emulators will likely not be updated.
Question by user:
Will the older API Level 17 be updated with a new Google Play services?
Project member answer:
Sorry, we're only committing to keeping the latest API up-to-date.