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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 用两张图告诉你,为什么你的 App 会卡顿? - Android - 掘金 Cover 有什么料? 从这篇文章中你...
    hw1212阅读 13,127评论 2 59
  • 功能和 API 概览 Android 11 面向开发者引入了一些出色的新功能和 API。以下几部分内容可帮助您了解...
    icechao阅读 1,277评论 0 2
  • App测试点: 1、 安装查看在安装过程中存在的提示信息是否明确,意思是否明确在安装过程中,点击取消按钮,能否...
    理智_b3b0阅读 1,374评论 2 5
  • 推荐指数: 6.0 书籍主旨关键词:特权、焦点、注意力、语言联想、情景联想 观点: 1.统计学现在叫数据分析,社会...
    Jenaral阅读 5,770评论 0 5
  • 城空了,有树长出来 我的城死了 铸起它的人,杀死它的人 不愿因为这件事而骄傲 一座城的终结 永远因为终结这件事而显...
    于十六阅读 2,902评论 6 17