修复 S+ 后,应用程序在三星型号中冻结瞄准 S+ (31及以上版本)

发布于 2025-01-20 21:30:10 字数 526 浏览 1 评论 0原文

我有一个应用程序,它在更新到SDK 31后会崩溃,我已经修复了添加flag_immutables。但是现在该应用没有崩溃。它显示了窗口小部件中的应用程序冻结。对此的任何想法。

Unable to start receiver .widget.WidgetProvider: java.lang.IllegalArgumentException: : Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.

I have an app, it makes crashes after updating to the sdk 31, I have fixed with adding the FLAG_IMMUTABLEs. But now the app not crashing. It shows the app freezing in widgets. Any thoughts on this.

Unable to start receiver .widget.WidgetProvider: java.lang.IllegalArgumentException: : Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文