您好,在安卓开发中我将SDK版本升级至34后,如下
compileSdkVersion 34 targetSdkVersion 34
在安卓12手机上使用时出现权限问题,报错位置如图
具体错误信息为:
java.lang.IllegalArgumentException: com.sanxing.mr: 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.
麻烦问一下有没有什么解决办法或者更新的驱动包可以使用。
感谢,盼复!