UpdateAppUtils
UpdateAppUtils copied to clipboard
Targeting 31. 下载报错,建议发布一个2.4.0版本,急等!!!
java.lang.IllegalArgumentException
com.bbj.elearning: 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.
val pendingIntent = PendingIntent.getBroadcast(context, REQUEST_CODE, intent, PendingIntent.FLAG_CANCEL_CURRENT)
此方法能优化下吗?谢谢