FirebaseMessagingService无法覆盖zzb中的zzae(Intent).参考错误较弱

Sus*_*ant 5 android firebase firebase-cloud-messaging

我目前正在使用firebase-messaging 9.4.0,并且在构建应用程序时出错,我收到了错误消息

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

所以我检查了编译后的FirebaseMessagingService,它是子类,com.google.firebase.iid.zzb并将zzae(Intent)方法作为私有,但是它的子类FirebaseMessagingService具有受保护的访问权限我知道子类的引用不能超过它的超类,所以我猜FirebaseMessagingService库有问题.

小智 12

今天我得到了同样的效果,我将播放服务改为9.8.0,但我的firebase仍然是9.4.0,更改了firebase使用9.8.0解决了它.