I am targeting Android > 19. The latest Google Play services version is 5.2.08, but on my device the latest I can install is 4.4.52.
Now, when I check for GooglePlayServicesUtil.isGooglePlayServicesAvailable() I always get that my version needs to be updated and I am redirected to the store. But I cannot update from strore, because the latest version is not supported on my device (I see only open and uninstall buttons).
What is the solution for this? I need only notifications feature, nothing more. Should I use older version of Play Services? How can I know which version to choose? Where to get the official older version?
Thanks
If you use Android Studio, just replace in build.gradle :
compile 'com.google.android.gms:play-services:+'
by
compile 'com.google.android.gms:play-services:5.0.89+'
or lower
You should have something like this in your build.gradle:
compile 'com.google.android.gms:play-services:5.0.+'
Try changing it to something like this:
compile 'com.google.android.gms:play-services:4.4.+'
Related
We are trying to integrate Google+ login on our Android-ChromeOS app. In this guide (https://developer.chrome.com/apps/arc_playservices), the last step suggests to downgrade the Google Play Services SDK so that it works in ARC. What is the exact version of Google Play Services SDK we need to downgrade to?
Latest version of this SDK is 10.2.0. We tried with 9.0.0 but it didn't work.
Issue resolved. Upgrade prompt is no longer displayed.
Had to set up the following
classpath 'com.google.gms:google-services:1.5.0'
So that we could downgrade the play services to a lower version
compile 'com.google.android.gms:play-services:8.3.0'
I am using GCM Push Notification Code in my Android Project. While running on real Devices, every times it ask me to Update Google Play Services.
I am using the following version for GCM library:
dependencies {
compile 'com.google.android.gms:play-services-gcm:8.3.0'
compile 'com.android.support:support-v4:19.1.0'
}
I am using the same code from Android quickStart Sample:
Sample Code Link
I am targeting my App for 5.0 and above Devices. Is there any way, so that I can switch to lowest library version of GCM that majority of Android 5.0 comes with.
So that I need to install updated version of Google Play Services while running my App.
Always compile your project with the latest version which support libraries. They run on all version previous versions of Android.
All Android 2.3, 4.x, 5.x, 6.x version run the same latest version of the latest support libraries.
Current latest version of support libraries are
dependencies {
compile 'com.google.android.gms:play-services-gcm:8.4.0'
compile 'com.android.support:support-v4:23.1.1'
}
The whole point of providing Play Services and Support libraries is that Google can update following libraries on all phones without updating the core Android OS.
If you get message on your phone that you need to update Play Services then please do so. Without having the latest version of Play Services many apps will have problems to run.
Google Play Services need to update in android studio emulator. But if I press update nothing happens. I am using api 23.1.1. I need to use the op play services to use Google Cloud Messaging. how do you need to update?
Run SDK Manager.exe you will get a pop up of Android SDK Manager. At the bottom u will find Select New or Updates. Then you can select the updated google play services and install the package.
I fixed this issue before by changing a line in my build.gradle file
from:
compile 'com.google.android.gms:play-services:8.3.0'
to:
compile 'com.google.android.gms:play-services:7.+'
I am having Google+ login in my app.I have done all the steps which was mentioned in this link here
The issue is when I run my app it shows "this app will not work unless you update your Google play service".Then I updated my google-play services to its latest version.
later I update the Google-API Intel x86 atom_64 system image under API-21.Still I find the same message to appear.
can't fix this issue need help.Don't know what I am doing wrong.
Check if the feature that you use really needs the latest version of google apis, you can use older versions of the google play services by adding
compile 'com.google.android.gms:play-services:6.5.87'
under dependencies in build.gradle
Try resetting app preferences. Settings>Apps>menu>reset app preferences. This sometimes helps with Play issues.
You have to import google play service from sdk->extras->google->googleplayservices->googleplayservice-lib;
Then rightclick on project -> properties ->add
add the library
to get new version go to sdkmanager->extras->googleplayservice (install or update)
if it is not available then you have to update adt tools and then it will appear.
for that use link
How can I update my ADT in Eclipse?
And it's aparently not.
I've just compiled an APP with the latest google play services, which I've set on gradle as:
compile 'com.google.android.gms:play-services:+'
But when I open my APP, there's a huge warning.
And in LogCat:
W/GooglePlayServicesUtil﹕ Google Play services out of date. Requires 5208000 but found 5089070
If I open google play (pressing Actualizar button), I can see my Google Play services are totally updated.
This is happening on a genymotion emulator aswell as on a nexus 5 device.
I've tried things like:
compile 'com.google.android.gms:play-services:5.2.8'
However it complains:
Error:Could not find com.google.android.gms:play-services:5.2.8.
Required by:
:mobile:unspecified > :BaseGameUtils:unspecified
Any tips?
Fixed with
compile 'com.google.android.gms:play-services:5.0.89'
I've found out is that my Android Studio is downloading some version of google play services, which is not yet released on Google Play. That means that noone have that latest APK on their devices. So setting gradle to use an older version, will make the trick
Fixed with
For Gradle:
compile 'com.google.android.gms:play-services:5.0.77'
For Eclipse:
Add as library: https://dl-ssl.google.com/android/repository/google_play_services_5077000_r18.zip
If above did not work, try to use older playstore service version of android playstore client.
https://dl-ssl.google.com/android/repository/google_play_services_4132530_r14.zip
https://dl-ssl.google.com/android/repository/google_play_services_4242030_r15.zip
https://dl-ssl.google.com/android/repository/google_play_services_4323030_r16.zip
https://dl-ssl.google.com/android/repository/google_play_services_5077000_r18.zip
https://dl-ssl.google.com/android/repository/google_play_services_5089000_r19.zip
https://dl-ssl.google.com/android/repository/google_play_services_6171000_r21.zip