Facing this Error while linking console project for firbase operation:
Could not find com.google.gms.google-services:4.3.15:.
Required by:
project :
Each & everything is fine but maybe a new update let me to this issue.
-
Google services file is in the exact directory
-
Classpath is perfect:
e.g:dependencies {
classpath ‘com.android.tools.build:gradle:7.3.0’
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath ‘com.google.gms.google-services:4.3.15’
}
Plugins are in the perfect location:
apply plugin: ‘com.android.application’
apply plugin: ‘kotlin-android’
apply plugin: ‘com.google.gms.google-services’
apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"
2
Answers
As explained in Error:Could not find com.google.gms: google-services:4.3.15?, there seems to be a typo. I have done this and it fixed my error.
You just have to change the
classpath 'com.google.gms.google-services:4.3.15'
To
classpath 'com.google.gms:google-services:4.3.15'