Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sdk 31 PendingIntent IllegalArgumentException #49

Open
Luke-Tang opened this issue Oct 5, 2022 · 1 comment
Open

sdk 31 PendingIntent IllegalArgumentException #49

Luke-Tang opened this issue Oct 5, 2022 · 1 comment

Comments

@Luke-Tang
Copy link

SDK31以上, 创建PendingIntent时, flag必须设置,请参考最新的api文档

Caused by: java.lang.IllegalArgumentException: com.luke.endoscope: 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.
@l12ab
Copy link

l12ab commented Jun 28, 2023

我这边有这个错误,希望作者更新一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants