0

In my working project, suddenly I am facing this issue. I did not update anything.

ERROR: Unable to resolve dependency for ':app@developmentDebug/compileClasspath': Could not find any version that matches com.google.firebase:firebase-messaging:16.0.+. Show Details Affected Modules: app

enter image description here

  • 1
    Possible duplicate of [Unable to resolve dependency for ':app@debug/compileClasspath': Could not resolve com.google.firebase:firebase-messaging:17.1.0](https://stackoverflow.com/questions/51551190/unable-to-resolve-dependency-for-appdebug-compileclasspath-could-not-resolv) – Sree Oct 21 '19 at 11:06
  • you mistaken the version and please post gradle code. – Ashish Oct 21 '19 at 11:07

2 Answers2

0

Avoid using + in version number.

Try this:

implementation 'com.google.firebase:firebase-messaging:20.0.0'
Ashish
  • 6,791
  • 3
  • 26
  • 48
0

The version com.google.firebase:firebase-messaging:16.x.x doesn't exist in the google maven repo.

You can check the repo.
Use one of the existing versions.

enter image description here

Gabriele Mariotti
  • 320,139
  • 94
  • 887
  • 841