Here I have used FirebaseMessagingService in Kotlin but when I run the project it will give me the following error:
Class \'MyFirebaseMessagingService
On 2nd of May there is a new release that allow the below
Firebase Android SDKs now have independent version numbers, allowing for more frequent, flexible updates.
So I think now we need to used different versions according to each module, check release notes pages to latest released details https://firebase.google.com/support/release-notes/android
Firebase Android Release Notes
Firebase Core com.google.firebase:firebase-core:15.0.2
Analytics com.google.firebase:firebase-analytics:15.0.2
Authentication com.google.firebase:firebase-auth:15.1.0
Cloud Firestore com.google.firebase:firebase-firestore:16.0.0
Cloud Messaging com.google.firebase:firebase-messaging:15.0.2
Unit defined in com.google.firebase.messaging.FirebaseMessagingService
You should Downgrade
version. Use 15.0.0
.
com.google.firebase:firebase-****:15.0.0
NOTE
If the problem still coming, You can use stable
12.0.1
.
com.google.firebase:firebase-****:12.0.1