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

Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. #6

Closed
RocketGirls101 opened this issue Feb 21, 2022 · 2 comments

Comments

@RocketGirls101
Copy link

Caused by: 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.
at android.app.PendingIntent.checkFlags(PendingIntent.java:375)
at android.app.PendingIntent.buildServicePendingIntent(PendingIntent.java:724)
at android.app.PendingIntent.getService(PendingIntent.java:686)
at com.pitaya.mobile.uinspector.notification.UInspectorNotificationService.createNotification(UInspectorNotificationService.kt:88)
at com.pitaya.mobile.uinspector.notification.UInspectorNotificationService.onStartCommand(UInspectorNotificationService.kt:37)
at android.app.ActivityThread.handleServiceArgs(ActivityThread.java:4639)

大佬你好,做Android12适配工作的时候报了这个错误,可以处理一下吗,感谢。

@YvesCheung
Copy link
Owner

今天处理

@YvesCheung
Copy link
Owner

Commit: 6aec622
Release: 2.0.11

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