Gradle project sync failed. Basic functionality (e.g. editing, deugging ) will not work properly

133 Views Asked by At

Gradle sync failed when the firebase cloud messaging dependency was applied.

I've tried all the versions of FCM in app like 17.0.0, 17.3.2, 15.0.0, 16.0.1, etc.

enter image description here

enter image description here

enter image description here

2

There are 2 best solutions below

0
Tamir Abutbul On

Try to replace your implementation with this :

implementation 'com.google.firebase:firebase-database:17.3.4'irebase-messaging:17.3.4
0
Kartik Shandilya On

You can always check the docs for a detailed explanation.

Replace your current FCM dependency with the following version -

implementation 'com.google.firebase:firebase-database:17.3.4'