FirebaseMessagingService cannot override zzae (Intent) in zzb. Weaker reference error

I am currently using firebase-messaging 9.4.0 and an error occurs while creating the application and I received an error message

Error:(18, 8) error: zzae(Intent) in FirebaseMessagingService cannot override zzae(Intent) in zzb attempting to assign weaker access privileges; was protected

So, I checked the compiled FirebaseMessagingService, which was a subclass of com.google.firebase.iid.zzb , and had the zzae (Intent) method as private, but its subclass of FirebaseMessagingService had secure access. I know that subclasses cannot have a weaker link than their superclass, so I think something is wrong with the FirebaseMessagingService library.

+5
source share
2 answers

Today I got the same thing that changed the game services to 9.8.0, but I had firebase still at 9.4.0, changing firebase to use 9.8.0, solved it.

+12
source

If you updated the firebase gradle version only once. Firebase version and service should be the same

0
source

Source: https://habr.com/ru/post/1259231/


All Articles