MI 10 Android 11 Fatal Exception: android.app.RemoteServiceException Bad notification

在小米 10 系列设备,Android 11 系统, 应用发送通知时产生崩溃:

Fatal Exception: android.app.RemoteServiceException
Bad notification(tag=null, id=101) posted from packageName, 
crashing app(uid=10692, pid=26222): Couldn't inflate contentViewsjava.lang.NullPointerException: 
Attempt to invoke virtual method 'android.app.Notification$MessagingStyle 
android.app.Notification$MessagingStyle.setConversationType(int)' on a null object reference
image.png
网图,侵删.png

有没有用小米10 系列、Android 11 系统的小伙伴遇到过这种情况?

RemoteServiceException crashing my app on MIUI 11

你可能感兴趣的:(MI 10 Android 11 Fatal Exception: android.app.RemoteServiceException Bad notification)