


Resolving "Failed to resolve com.google.android.gms:play-services-auth:11.4.0" Error
Issue:
When attempting to utilize FirebaseUI for Android Auth, developers may encounter the error message "Failed to resolve com.google.android.gms:play-services-auth:11.4.0". This error occurs due to challenges in resolving the dependency.
Resolution:
To resolve this issue, the following steps should be taken:
-
Add maven Repository:
Append the following block to the root level build.gradle file:
allprojects { repositories { jcenter() maven { url "https://maven.google.com" } } }
-
Ensure Compatibility:
Verify that the version numbers of the Firebase and Google Play Services libraries are consistent. For example:
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'
-
Upgrade Gradle Plugin (Optional):
Update the Google Play Services Gradle plugin to the latest version (minimum version: 3.3.1):
classpath 'com.google.gms:google-services:4.0.1'
-
Update Library Versions:
Upgrade the Firebase and Google Play Services libraries to the most recent versions available.
The above is the detailed content of How to Fix \'Failed to resolve com.google.android.gms:play-services-auth:11.4.0\' Error in Android FirebaseUI Auth?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SublimeText3 English version
Recommended: Win version, supports code prompts!

Dreamweaver Mac version
Visual web development tools

Zend Studio 13.0.1
Powerful PHP integrated development environment

SublimeText3 Mac version
God-level code editing software (SublimeText3)

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function