본문 바로가기
모바일/Android

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

by 죠부니 2022. 5. 16.
반응형

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.

나의경우 FLAG_ONE_SHOT으로 되어있는 부분을 FLAG_MUTABLE로 변경후 완료

 

자세한내용

https://developer.android.com/reference/android/app/PendingIntent#FLAG_IMMUTABLE

 

PendingIntent  |  Android Developers

android.net.wifi.hotspot2.omadm

developer.android.com

반응형