Reputation: 1510
My Android Studio giving me an error see below images
but firebase doc gave me a different version of many libraries, here is the doc
So my question is if firebase doc gives me this different version of libraries then why is android studio giving me this error?
Upvotes: 0
Views: 65
Reputation: 1510
As per one of comment suggested, Upgrading an Android Studio and Gradle version Did solve my problem, Previously I was using Android Studio 3.0 and after upgrading to Android Studio 3.1.3 this error was gone.
Below are the changes that I have made.
Updated Android Studio from 3.0 to 3.1.3
Updated Gradle Version to 4.4
If this will not fix your problem then try to upgrade your Google plugin version to the latest one
classpath 'com.google.gms:google-services:latest.version'
Upvotes: 0
Reputation: 80914
Use the following google service plugin:
classpath 'com.google.gms:google-services:4.0.1'
and upgrade firebase invites:
implementation 'com.google.firebase:firebase-invites:16.0.1'
Upvotes: 1
Reputation: 317412
Upgrade the version of the version of the google services gradle plugin to the latest in you top-level build.gradle:
classpath 'com.google.gms:google-services:4.0.1'
This is the plugin that checks for proper versions. Only newer versions of this plugin understand the new versioning system of the libraries.
Upvotes: 1