Questions tagged [google-play-services]

With Google Play services, your Android app can take advantage of the latest, Google-powered features such as Maps, Google+, and more, with automatic platform updates distributed as an APK through the Google Play store. This makes it faster for your users to receive updates and easier for you to integrate the newest that Google has to offer.

Give your Android apps more features to attract users on a wider range of devices. With Google Play services, your app can take advantage of the latest, Google-powered features such as Maps, Google+, and more, with automatic platform updates distributed as an APK through the Google Play store. This makes it faster for your users to receive updates and easier for you to integrate the newest that Google has to offer.

The latest version is 12.6.88, which was released in May 2018.

References:

7207 questions
87
votes
15 answers

getToken() failed. Status BAD_AUTHENTICATION error

I've found the following error when running my android application in android studio. app couldn't get installed on my device because of this error. Didn't find the solution :( please help Auth: [GoogleAccountDataServiceImpl] getToken() failed. …
Sahar Malik
  • 895
  • 1
  • 6
  • 4
86
votes
12 answers

Cannot Resolve Symbol: FusedLocationProviderClient. Google play services version used 11.0.1

Cannot Resolve Symbol: FusedLocationProviderClient. Google play services version used 11.0.1. code : while declaration private FusedLocationProviderClient mfusedLocationProviderclient;
mark21
  • 889
  • 1
  • 6
  • 3
84
votes
0 answers

SecurityException Permission Denial: opening provider com.google.android.gms.phenotype.provider.ConfigurationProvider

After integrating Firebase Crashlytics instead of Firebase Crash Reporting I have begun to get some crashes. I don't know anything about com.google.android.gms.phenotype.provider.ConfigurationProvider. What is it? And it appears on some devices…
82
votes
13 answers

FusedLocationApi.getLastLocation always null

I'd like to simply retrieve device location in my Android project and in order to do so I use the play-services approach: protected synchronized void buildGoogleApiClient() { mGoogleApiClient = new GoogleApiClient.Builder(…
Marco Zanetti
  • 4,051
  • 6
  • 32
  • 48
81
votes
32 answers

New Google sign in Android

I'm trying to get a user token ID using the new Google play services 8.3 and as documented I pass the server ID: GoogleSignInOptions gso = new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN) …
Metwalli
  • 1,861
  • 1
  • 18
  • 27
76
votes
5 answers

Missing "/extras/google/google_play_services/libproject" folder after update to revision 30

I updated the Google Play Services version from the revision 29 to 30 using the Android SDK Manager, but after updating the directory "/extras/google/google_play_services/libproject" disappeared, leaving only the directories "docs" and "…
jefferson_amarals
  • 924
  • 1
  • 7
  • 16
75
votes
9 answers

GoogleApiClient is throwing "GoogleApiClient is not connected yet" AFTER onConnected function getting called

So I found something that is not very clear for me about GoogleApiClient. GoogleApiClient has a function called onConnected which is run when the client is connected (for sure). I got my own function called: startLocationListening which is…
74
votes
6 answers

Failed to resolve: com.google.firebase:firebase-core:11.2.0

I'm getting multiple "Failed to Resolve" issues when syncing my project. They are all firebase and play-services related. I made sure they are all the same (11.2.0). I've also checked and the latest version for both is 11.2.0. Also, all the other…
73
votes
10 answers

Get referrer after installing app from Android Market

I am trying to register a Broadcast Receiver that catches "com.android.vending.INSTALL_REFERRER" intents launched by Android after an app is installed from the Market. I am following the details here:…
Jake
  • 781
  • 1
  • 6
  • 5
72
votes
2 answers

How to suppress the "Avoid using bundled version of Google Play services SDK" warning?

I'm using the Google Play services in my Android app so I have the dependency in my build.gradle. compile 'com.google.android.gms:play-services:10.2.1' But Android Studio shows a warning for it: Avoid using bundled version of Google Play services…
Frederick Zhang
  • 3,593
  • 4
  • 32
  • 54
72
votes
7 answers

In-app purchases with multiple accounts

I am facing a problem with in app purchases/subscriptions: If there are multiple accounts on the device, I can't get the purchases, which were made with the second account. This can sometimes be temporarily fixed, by installing the app from the…
72
votes
4 answers

ProGuard: can't find referenced class com.google.android.gms.R

After some updates in Android SDK manager I try make signed apk and get this: ProGuard: [] Warning: com.google.android.gms.auth.GoogleAuthUtil: can't find referenced class com.google.android.gms.R ProGuard: [] Warning:…
Bred P.
  • 786
  • 1
  • 5
  • 8
70
votes
6 answers

Have both GMS and HMS in the project

How does one go about having both Google Mobile Services and Huawei Mobile Services in the app? Being that Huawei have lost the license over GMS, it seems we need to replace all the GMS services used in the apps with Huawei provided ones. What would…
AndreiBogdan
  • 10,858
  • 13
  • 58
  • 106
70
votes
14 answers

Error: fix the version conflict (google-services plugin)

As per this SO thread, I know there are version conflicts, but issue still persists after new versions from Google. Error:Execution failed for task ':app:processDebugGoogleServices'. Please fix the version conflict either by updating the version…
70
votes
8 answers

After Google Play Service update to version 13 I got an error

How can I resolve this error? Caused by: java.lang.illegalargumentexception 11-01 11:08:12.845: E/AndroidRuntime(28885): Caused by: java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right…
Igor Kostenko
  • 2,754
  • 7
  • 30
  • 57