Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I am currently using firebase-messaging 9.4.0 and there is an error while building the application I got an error saying

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

So I inspected the compiled FirebaseMessagingService which was the subclass of com.google.firebase.iid.zzband had zzae(Intent) method as private but its subclass FirebaseMessagingService had protected access I know that subclasses cannot have weaker reference than its super class so I guess there is something wrong with FirebaseMessagingService library.

like image 994
Sushant Avatar asked Nov 03 '16 15:11

Sushant


Video Answer


1 Answers

I got the same today i changed play-services to 9.8.0 but i had firebase still at 9.4.0, changing firebase to use 9.8.0 solved it.

like image 79
Edvald Eysteinsson Avatar answered Sep 29 '22 01:09

Edvald Eysteinsson