Could not resolve all files for configuration ':app:debugCompileClasspath'. > Could not find com.google.firebase:firebase-messaging:15.0.1

Hi I’m developing ionic-v3 project and I have this problem when run
ionic cordova build android
Could not resolve all files for configuration ‘:app:debugCompileClasspath’.

Could not find com.google.firebase:firebase-messaging:15.0.1.
Searched in the following locations:
file:/C:/platform-tools/extras/m2repository/com/google/firebase/firebase-messaging/15.0.1/firebase-messaging-15.0.1.pom
file:/C:/platform-tools/extras/m2repository/com/google/firebase/firebase-messaging/15.0.1/firebase-messaging-15.0.1.jar
file:/C:/platform-tools/extras/google/m2repository/com/google/firebase/firebase-messaging/15.0.1/firebase-messaging-15.0.1.pom
file:/C:/platform-tools/extras/google/m2repository/com/google/firebase/firebase-messaging/15.0.1/firebase-messaging-15.0.1.jar
file:/C:/platform-tools/extras/android/m2repository/com/google/firebase/firebase-messaging/15.0.1/firebase-messaging-15.0.1.pom
file:/C:/platform-tools/extras/android/m2repository/com/google/firebase/firebase-messaging/15.0.1/firebase-messaging-15.0.1.jar
https://maven.google.com/com/google/firebase/firebase-messaging/15.0.1/firebase-messaging-15.0.1.pom
https://maven.google.com/com/google/firebase/firebase-messaging/15.0.1/firebase-messaging-15.0.1.jar
https://jcenter.bintray.com/com/google/firebase/firebase-messaging/15.0.1/firebase-messaging-15.0.1.pom
https://jcenter.bintray.com/com/google/firebase/firebase-messaging/15.0.1/firebase-messaging-15.0.1.jar
https://repo1.maven.org/maven2/com/google/firebase/firebase-messaging/15.0.1/firebase-messaging-15.0.1.pom
https://repo1.maven.org/maven2/com/google/firebase/firebase-messaging/15.0.1/firebase-messaging-15.0.1.jar
Required by:
project :app

Add this in your build.gradle end of file

com.google.gms.googleservices.GoogleServicesPlugin.config.disableVersionCheck = true

With google play service. Version 4.3.0

googleServices.disableVersionCheck = true
1 Like

that’s what I get

FAILURE: Build failed with an exception.

  • Where:
    Build file ‘C:\projects\myApp\platforms\android\build.gradle’ line: 57

  • What went wrong:
    A problem occurred evaluating root project ‘android’.

Could not get unknown property ‘com’ for root project ‘android’ of type org.gradle.api.Project.

  • 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