Could not find com.google.android.gms:strict-version-matcher-plugin:1.1.0.


#1
  • What went wrong:
    A problem occurred evaluating project ‘:app’.

Could not resolve all files for configuration ‘classpath’.
Could not find com.google.android.gms:strict-version-matcher-plugin:1.1.0.
Searched in the following locations:
https://jcenter.bintray.com/com/google/android/gms/strict-version-matcher-plugin/1.1.0/strict-version-matcher-plugin-1.1.0.pom
https://jcenter.bintray.com/com/google/android/gms/strict-version-matcher-plugin/1.1.0/strict-version-matcher-plugin-1.1.0.jar
file:/C:/Users/e1706396/.m2/repository/com/google/android/gms/strict-version-matcher-plugin/1.1.0/strict-version-matcher-plugin-1.1.0.pom
file:/C:/Users/e1706396/.m2/repository/com/google/android/gms/strict-version-matcher-plugin/1.1.0/strict-version-matcher-plugin-1.1.0.jar
Required by:
unspecified:unspecified:unspecified > com.google.gms:google-services:4.2.0

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

  • Get more help at https://help.gradle.org

BUILD FAILED in 7s
cmd: Command failed with exit code 1


#2

Hi,

May I know what are version of:

  1. google-services
  2. android gradle plugin

that you specified in build.gradle?

Extra:
If you are using firebase messaging, what is the firebase-messaging version you specified in your build.gradle as well?


#3

If you using cordova-plugin-fcm, you can check this file bellow,

platforms > android > cordova-plugin-fcm > ***.gradle

Then add

maven { url “https://maven.google.com” }

.

Final code would be like this:

buildscript {
    repositories {
        maven { url "https://maven.google.com" }
        jcenter()
        mavenLocal()
   }
    dependencies {
        classpath 'com.android.tools.build:gradle:+'
        classpath 'com.google.gms:google-services:+'
    }
}
// apply plugin: 'com.google.gms.google-services'
// class must be used instead of id(string) to be able to apply plugin from non-root gradle file
apply plugin: com.google.gms.googleservices.GoogleServicesPlugin

This is what works for me.


#4

I added maven { url “https://maven.google.com” } and it build successfully but when I installed my app using both emulator and real android device, the app does not open. It keeps on crashing even before the splash screen shows up. The app is not starting at all.