FirebaseMessagingService

FirebaseMessagingService

我目前正在使用firebase-messaging 9.4.0,在构建应用程序时出现错误,我收到一条错误消息:
Error:(18, 8) error: zzae(Intent) in FirebaseMessagingService cannot override zzae(Intent) in zzbattempting to assign weaker access privileges; was protected
因此,我检查了已编译的FirebaseMessagingService,它是com.google.firebase.iid.zzb的子类,并具有zzae(Intent)方法作为私有(private)方法,但是其子类FirebaseMessagingService具有 protected 访问权限,我知道子类的引用不能比其父类弱,因此我猜想FirebaseMessagingService库有问题。

最佳答案

今天我得到了相同的结果,将play-services更改为9.8.0,但是我的firebase仍然是9.4.0,将firebase更改为使用9.8.0可以解决了该问题。

10-07 20:08