MZCretin / AutoUpdateProject

App 内部更新 提供12种更新的样式 支持Android全系统版本 支持自定义UI 断点续传
1.07k stars 222 forks source link

sdk 31 PendingIntent IllegalArgumentException #49

Open Luke-Tang opened 2 years ago

Luke-Tang commented 2 years ago

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 commented 1 year ago

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