Erum Malik
Erum Malik

Reputation: 819

Firebase version update issue

I'm trying to update my firebase id & firebase messaging version but it gives me error

   implementation "com.google.firebase:firebase-core:17.0.0"
   implementation "com.google.firebase:firebase-iid:17.0.2"
   implementation "com.google.firebase:firebase-messaging:17.0.0"

   implementation "com.google.android.gms:play-services-places:17.0.0"
   implementation "com.google.android.gms:play-services-location:17.0.0"
   implementation "com.google.android.gms:play-services-maps:17.0.0"

Dependency failing: com.google.firebase:firebase-messaging:17.0.0 -> com.google.firebase:firebase-iid@[16.0.0], but fire base-iid version was 19.0.0.

Also giving following errors:

The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art ifact with the issue. -- Project 'mifosng' depends on project 'debugCompileClasspath' which depends onto com.google.firebase:firebase-analytic [email protected] -- Project 'mifosng' depends on project 'debugCompileClasspath' which depends onto com.google.firebase:firebase-core@17. 0.0 -- Project 'mifosng' depends on project 'debugCompileClasspath' which depends onto com.google.firebase:firebase-messagin [email protected]

Upvotes: 1

Views: 1703

Answers (3)

Farouq Afghani
Farouq Afghani

Reputation: 296

This happened to me before, You need to add/enable AndroidX in your project

Do not forget to add these in your Project properties:

android.useAndroidX=true
android.enableJetifier=true

Upvotes: 1

Peter Haddad
Peter Haddad

Reputation: 80924

You dont need to add:

implementation "com.google.firebase:firebase-iid:17.0.2"

As it is a transitive dependency used in firebase-messaging which means firebase-messaging already uses it. So just remove implementation "com.google.firebase:firebase-iid:17.0.2" from your build.gradle file.

Upvotes: 0

Harry Cotte
Harry Cotte

Reputation: 100

This work for me :

implementation 'com.google.firebase:firebase-iid:19.0.1'
implementation 'com.google.firebase:firebase-core:17.0.1'
implementation 'com.google.firebase:firebase-database:18.0.0'
implementation 'com.google.firebase:firebase-auth:18.1.0'
implementation 'com.google.firebase:firebase-messaging:19.0.1'

And

classpath 'com.google.gms:google-services:4.3.0' 

in dependencies of the top level build.gradle

Upvotes: 0

Related Questions