- BUILD FAILED: Could not find com.google.android.gms:play-services-auth:11.8.0 #478
- Comments
- zmilkman commented Apr 4, 2018 •
- EddyVerbruggen commented Apr 5, 2018
- lucianomizra commented Apr 6, 2018
- zmilkman commented Apr 6, 2018
- EddyVerbruggen commented Apr 6, 2018
- gilzonme commented Apr 17, 2018
- oleksii-lyhun commented Apr 26, 2018
- KlejdyszS commented Apr 27, 2018 •
- gilzonme commented May 6, 2018
- vipulism commented May 8, 2018
- DRKRahul commented May 28, 2018
- jayhasgin commented May 31, 2018
- garybentley commented Sep 11, 2018
- patelashish16 commented Oct 25, 2018
- bppearsoft commented Nov 17, 2018
- MarcosRibeiroJesus commented Dec 5, 2018
- amamitpandey commented Jan 15, 2019
- davinderkumar commented Mar 27, 2019
- Piter-Ruiz commented Jun 6, 2019
- Set up Google Play services
- Declare dependencies for Google Play services
- Check whether Google Play services is installed
- Google Play services dependencies
- Gradle plugins
BUILD FAILED: Could not find com.google.android.gms:play-services-auth:11.8.0 #478
Comments
zmilkman commented Apr 4, 2018 •
framework src = » com.google.android.gms:play-services-auth:11.8.0 »/> |
Phonegap Build is failing with this exception:
I tried removing the plugin, just to confirm the plugin was actually causing the error. Once I removed the plugin, the build succeeded. So it is the plugin, and this is the only line of code that looks like it could be causing the error. Not sure how to solve it, wish I could be of more help.
The plugin was working fine about a month ago.
Using: Phonegap Build
Version of Plugin: latest
Here is the full error Message. Not sure is this helps.
The text was updated successfully, but these errors were encountered:
EddyVerbruggen commented Apr 5, 2018
Cause: #474, not sure what to do.. switching back to the old version will give other issues.
lucianomizra commented Apr 6, 2018
I managed to correct this error by changing the version of com.google.android.gms:play-services-identity and com.google.android.gms:play-services-auth from 11.8.0 to 11.0.4 in my platforms/android/project.properties
zmilkman commented Apr 6, 2018
Hey @EddyVerbruggen, can you elaborate when you say «other issues». Is going back to 11.0.4 as @lucianomizra suggested the best «for now» fix?
EddyVerbruggen commented Apr 6, 2018
The issues mentioned in the linked bug.
gilzonme commented Apr 17, 2018
Did anyone found solution for this?
oleksii-lyhun commented Apr 26, 2018
I solved this problem simply by changing the version of android in config.xml
Or you can open file
and add code maven < url "https://maven.google.com" >to buildscript.repositories and to allprojects.repositories
KlejdyszS commented Apr 27, 2018 •
I did all the things you guys posted, but it still does not compile in phonegap build, anyone has some better solution?
I still get error
Could not find com.google.android.gms:play-services-auth:11.8.0.
gilzonme commented May 6, 2018
@KlejdyszS i did this by changing the version to a lower one. And it worked.
vipulism commented May 8, 2018
@lucianomizra these changes works for me when i made the same changes in my platforms/android/build-extras.gradle all version of 11.8.0 to 11.0.4
thanks
DRKRahul commented May 28, 2018
@EddyVerbruggen did you get any solution for this issue?
jayhasgin commented May 31, 2018
Using phonegap build with «phonegap-version» as «cli-8.0.0» and «pgb-builder-version» as «2», I am facing a different issue. It is asking to use a higher version 11.6.2. For now using a fork as quick fix.
garybentley commented Sep 11, 2018
In phonegap build, changing:
allowed a clean build. I used a cloned repo and created my own plugin but with only those changes.
The login works.
patelashish16 commented Oct 25, 2018
cordova plugin remove cordova-plugin-google-analytics
ionic cordova platform rm android
ionic cordova platform add android
ionic cordova build android
bppearsoft commented Nov 17, 2018
i use the ionic pro package service and it was failing with 11.8.0. I fixed it by changing this in my package.json file:
«PLAY_SERVICES_VERSION»: «11.6.2»
MarcosRibeiroJesus commented Dec 5, 2018
allowed a clean build. I used a cloned repo and created my own plugin but with only those changes.
`A problem occurred evaluating root project ‘android’.
Failed to apply plugin [class ‘com.google.gms.googleservices.GoogleServicesPlugin’]
For input string: «+»`
amamitpandey commented Jan 15, 2019
Update file from plateform -> android -> project-properties
target=android-27
android.library.reference.1=CordovaLib
android.library.reference.2=app
cordova.system.library.1=com.squareup.okhttp3:okhttp-urlconnection:3.10.0
cordova.system.library.2=com.android.support:support-v4:24.1.1+
cordova.system.library.3=com.facebook.android:facebook-android-sdk:4.36.0
cordova.system.library.4=com.google.firebase:firebase-core:10.+
cordova.system.library.5=com.google.firebase:firebase-messaging:10.+
cordova.gradle.include.1=cordova-plugin-fcm-with-dependecy-updated/app-FCMPlugin.gradle
cordova.system.library.6=com.google.android.gms:play-services-auth:10.+
cordova.system.library.7=com.google.android.gms:play-services-identity:10.+
cordova.system.library.8=com.android.support:support-v4:24.1.1+
and build it once again for android
it working for me
davinderkumar commented Mar 27, 2019
I am also getting this problem, on Meteor 1.8. Here is error log
It was fixed after I changed android — project.properties file line
cordova.system.library.4=com.google.android.gms:play-services-identity:11.8.0
to
cordova.system.library.4=com.google.android.gms:play-services-identity:11.0.4
my previous builds with 1.6 has
cordova.system.library.4=com.google.android.gms:play-services-identity:+
is there any fix available to this so I do not have to manually change these versions?
Piter-Ruiz commented Jun 6, 2019
Hey @amamitpandey so much thank you!! It working for me!!
Источник
Set up Google Play services
To develop an app using Google Play services APIs, follow the instructions on this page to set up your project with the relevant SDKs, which are available from the Google maven repository.
To test your app when using Google Play services, you must use one of the following:
- A compatible Android device that runs Android 4.4 (API level 19) or higher and has the Google Play Store app installed.
- The Android emulator with an AVD that runs the Google APIs platform based on Android 4.4 (API level 19) or higher.
Declare dependencies for Google Play services
To develop features that depend on the Google Play services APIs in your app, complete the following steps:
Open the build.gradle file inside your app’s module directory.
For each SDK that your app requires, include the dependency for that SDK. This page includes a section that lists common Google Play services dependencies for Android apps. You might also want to add Firebase dependencies to your project.
Save the changes and sync your project.
The following snippet shows an example build.gradle file that uses the location library:
New versions of the Google Play services SDKs with bug fixes and new features are periodically released. These updates are announced in the release notes. If your app uses a dependency that has been updated, change to the latest version in your app’s dependencies to take advantage of these fixes.
Check whether Google Play services is installed
As described in the Google Play services overview, Google Play services receives automatic updates on Android 4.4 (API level 19) and higher through the Google Play Store app. However, Android devices without Google Play Store don’t have Google Play services installed. If your app runs on devices without Google Play services, you might want to check to see if Google Play services is installed on the device before you attempt to use Google APIs, or enable features in your app that require Google Play services to function.
To check for the presence of Google Play services on the device, use the isGooglePlayServicesAvailable() method.
To then begin a connection to Google Play services, or learn how to detect whether the version of Google Play services installed supports a specific API, read the guide on Accessing Google APIs.
Google Play services dependencies
The following table lists the dependencies for Google Play services that you can include in your Android app. You can filter the list by device type by selecting one of the buttons, and you can search for a specific use case or dependency name by entering text into the box that appears after the buttons.
Phones and Tablets Android TV Auto Android Go Chrome OS Wear OS
Use case and dependency name | Supported devices |
---|---|
Google Mobile Ads com.google.android.gms:play-services-ads:20.5.0 | Phone, Tablet |
Android Advertising ID (AAID) com.google.android.gms:play-services-ads-identifier:17.1.0 | Phone, Tablet, Android TV, Chrome OS |
Lightweight version of Google Mobile Ads com.google.android.gms:play-services-ads-lite:20.5.0 | Phone, Tablet |
AdSense for Search (AFS) Custom Search Ads (CSA) com.google.android.gms:play-services-afs-native:19.0.1 | Phone, Tablet, Chrome OS |
Google Analytics Services SDK for Android com.google.android.gms:play-services-analytics:17.0.1 | Deprecated. Use Google Analytics for Firebase instead. |
Android App Set ID com.google.android.gms:play-services-appset:16.0.0 | Phone, Tablet, Android TV, Chrome OS |
Google Sign-In for Android com.google.android.gms:play-services-auth:19.2.0 | Phone, Tablet, Android TV, Auto, Android Go, Chrome OS |
SMS Retriever API com.google.android.gms:play-services-auth-api-phone:17.5.1 | Phone, Tablet, Android Go |
Block Store API (includes user credential storage) com.google.android.gms:play-services-auth-blockstore:16.0.2 | Phone, Tablet, Android Go, Chrome OS |
Google Awareness API com.google.android.gms:play-services-awareness:18.0.2 | Phone, Tablet, Auto, Android Go, Chrome OS |
Utility classes com.google.android.gms:play-services-base:17.6.0 | Phone, Tablet, Android TV, Auto, Android Go, Chrome OS, Wear OS |
More utility classes com.google.android.gms:play-services-basement:17.6.0 | Phone, Tablet, Android TV, Auto, Android Go, Chrome OS, Wear OS |
Google Cast com.google.android.gms:play-services-cast:20.1.0 | Phone, Tablet, Android Go, Chrome OS |
Google Cast Application Framework (CAF) com.google.android.gms:play-services-cast-framework:20.1.0 | Phone, Tablet, Android Go, Chrome OS |
Chromium network stack (Cronet) com.google.android.gms:play-services-cronet:17.0.1 | Phone, Tablet, Android TV, Auto, Android Go, Chrome OS, Wear OS |
Fast IDentity Online (FIDO) Authentication com.google.android.gms:play-services-fido:19.0.0-beta | Phone, Tablet, Android TV, Auto, Android Go, Chrome OS, Wear OS |
Supported on devices that run Android 7.0 (API level 24) or higher.
com.google.android.gms:play-services-fitness:20.0.0
com.google.android.gms:play-services-games:21.0.0
com.google.android.gms:play-services-instantapps:17.0.1
Supported on devices that run Android 5.0 (API level 21) or higher.
com.google.android.gms:play-services-location:18.0.0
com.google.android.gms:play-services-maps:18.0.0
com.google.android.gms:play-services-mlkit-barcode-scanning:16.2.1
com.google.android.gms:play-services-mlkit-face-detection:16.2.0
com.google.android.gms:play-services-mlkit-image-labeling:16.0.5
com.google.android.gms:play-services-mlkit-image-labeling-custom:16.0.0-beta1
com.google.android.gms:play-services-mlkit-language-id:16.0.0-beta2
com.google.android.gms:play-services-mlkit-text-recognition:17.0.0
com.google.android.gms:play-services-nearby:18.0.0
com.google.android.gms:play-services-oss-licenses:17.0.0
Supported on devices that run Android 5.0 (API level 21) or higher.
com.google.android.gms:play-services-password-complexity:17.0.1
Supported on devices that run Android 4.4 (API level 19) to Android 9 (API level 28).
com.google.android.gms:play-services-pay:16.0.1
Supported on devices that run Android 5.0 (API level 20) or higher.
com.google.android.gms:play-services-recaptcha:16.0.1
com.google.android.gms:play-services-safetynet:17.0.1
com.google.android.gms:play-services-tagmanager:17.0.1
com.google.android.gms:play-services-tasks:17.2.1
com.google.android.gms:play-services-vision:20.1.3
com.google.android.gms:play-services-wallet:18.1.3
com.google.android.gms:play-services-wearable:17.1.0
Gradle plugins
Google Play services also includes several Gradle plugins, as shown in the following table. Note that the buttons that appear before the previous table don’t change the information that appears in this table.
Use case and Gradle plugin name | Supported devices |
---|---|
Show open-source licenses com.google.android.gms:oss-licenses-plugin:0.10.4 | Phone, Tablet, Chrome OS |
Strict version checking com.google.android.gms:strict-version-matcher-plugin:1.2.2 | Phone, Tablet, Android TV, Auto, Android Go, Chrome OS, Wear OS |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Источник