


Resolving "Failed to Resolve Com.google.android.gms Play-Services-Auth:11.4.0" Error
Issue Description
When attempting to write code for Android FirebaseUI - Auth, users may encounter an error "Failed to resolve com.google.android.gms play-services-auth:11.4.0." This error typically arises due to discrepancies in repository configuration or version mismatches.
Solution
To resolve this issue, follow these steps:
1. Add Google Maven Repository to Root-Level build.gradle
Add the following repository to your root-level build.gradle file:
allprojects { repositories { jcenter() maven { url "https://maven.google.com" } } }
Starting from 11.2.0, this maven repository is required.
2. Ensure Consistent Library Versions
Verify that all Firebase and Google Play Services libraries use the same version. In this case, you should use the following versions:
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'
3. Update Google Play Services Plugin
Upgrade the Google Play Services plugin in your build.gradle file to the latest version (at least 3.3.1):
classpath 'com.google.gms:google-services:4.0.1'
4. Update Libraries to Latest Versions
Update all Firebase and Google Play Services libraries to their latest versions as well.
Note: As of May 2023, Firebase Android SDKs and Google Play Services libraries have independent version numbers.
The above is the detailed content of How to Resolve \'Failed to Resolve com.google.android.gms Play-Services-Auth:11.4.0\' Error in Android FirebaseUI?. For more information, please follow other related articles on the PHP Chinese website!

The article discusses using Maven and Gradle for Java project management, build automation, and dependency resolution, comparing their approaches and optimization strategies.

The article discusses creating and using custom Java libraries (JAR files) with proper versioning and dependency management, using tools like Maven and Gradle.

The article discusses implementing multi-level caching in Java using Caffeine and Guava Cache to enhance application performance. It covers setup, integration, and performance benefits, along with configuration and eviction policy management best pra

The article discusses using JPA for object-relational mapping with advanced features like caching and lazy loading. It covers setup, entity mapping, and best practices for optimizing performance while highlighting potential pitfalls.[159 characters]

Java's classloading involves loading, linking, and initializing classes using a hierarchical system with Bootstrap, Extension, and Application classloaders. The parent delegation model ensures core classes are loaded first, affecting custom class loa


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 Linux new version
SublimeText3 Linux latest version

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

Dreamweaver Mac version
Visual web development tools

Atom editor mac version download
The most popular open source editor