728x90 반응형 FLAG_MUTABLE2 [Java] 안드로이드에서 크롬캐스트 연결 시 "전송 대상" 선택 후 앱 죽는 현상에 대한 해결 방법 안드로이드에서 크롬캐스트 연결 시 "전송 대상" 선택 후 앱 죽는 현상 디버깅을 해 보니 아래와 같은 에러 메시지가 보입니다. java.lang.IllegalArgumentException: com.kiwidisk.android: 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 i.. 2023. 6. 27. java.lang.IllegalArgumentException: com.xxx.xxx: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. (targetSdkVersion 31 / Android 12) 안녕하세요. 오늘(2022년 11월 24일) 앱을 배포하려고 구글 플레이 스토어에 "새 버전 만들기"를 진행하려고 했더니 targetSdkVersion을 31로 (Android 12) 변경을 해야 등록이 가능하다고 메시지가 뜨네요. 그래서 30에서 31로 변경을 했습니다. 변경하고 테스트를 진행하니 아래 처럼 에러가 발생하면서 앱이 죽었습니다. java.lang.IllegalArgumentException: com.xxx.xxx: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. 해당 에러는 서비스 내 Notificati.. 2022. 11. 24. 이전 1 다음 728x90 반응형