Failed to resolve com.google.android.gms play-services-auth Issue
Unable to resolve the dependency com.google.android.gms play-services-auth:11.4.0? This issue can usually be attributed to the absence of the maven repository in your root level build.gradle file.
Solution:
Add the following repository to your root level build.gradle file:
allprojects { repositories { jcenter() maven { url "https://maven.google.com" } } }
Starting with version 11.2.0, this maven repo is essential.
Alternatively, you can use the google() shortcut, but ensure you meet its requirements.
Version Consistency:
It's crucial to maintain version consistency. In your case, you are using different versions of the Firebase libraries. For compatibility, ensure you use the same version:
compile 'com.google.firebase:firebase-database:11.0.4' compile 'com.google.firebase:firebase-auth:11.0.4' compile 'com.google.android.gms:play-services-auth:11.4.0'
Update Notes:
Firebase Android SDKs and Google Play Services libraries now have independent version numbers, allowing for more frequent updates. To keep up, consider updating the following:
classpath 'com.google.gms:google-services:4.0.1'
The above is the detailed content of How to Resolve the \'Failed to resolve com.google.android.gms play-services-auth\' Dependency Issue?. For more information, please follow other related articles on the PHP Chinese website!