您好,在安卓開(kāi)發(fā)中我將SDK版本升級(jí)至34后,如下
compileSdkVersion?34 targetSdkVersion?34
在安卓12手機(jī)上使用時(shí)出現(xiàn)權(quán)限問(wèn)題,報(bào)錯(cuò)位置如圖
具體錯(cuò)誤信息為:
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.
麻煩問(wèn)一下有沒(méi)有什么解決辦法或者更新的驅(qū)動(dòng)包可以使用。
感謝,盼復(fù)!