[BUG]: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
See original GitHub issueFlutter Sound Version :
- FULL or LITE flavor ? LITE
- Important: Result of the command :
flutter pub deps | grep flutter_sound
|-- flutter_sound_lite 8.4.2
| |-- flutter_sound_platform_interface 8.4.2
| |-- flutter_sound_web 8.4.2
| | |-- flutter_sound_platform_interface...
Severity
java.lang.RuntimeException: Unable to create service com.dooboolab.TauEngine.FlautoBackgroundAudioService:
Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Platforms you faced the error
- Android 12 Emulator
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
- Go to ‘…’
- Click on ‘…’
- Scroll down to ‘…’
- See error
How can it be fixed?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top Results From Across the Web
How to resolve "Missing PendingIntent mutability flag" lint ...
You can set your pending intent as val updatedPendingIntent = PendingIntent.getActivity( applicationContext, NOTIFICATION_REQUEST_CODE ...
Read more >Targeting S+ (version 31 and above) requires that ... - GitHub
Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Read more >Android 12 run: Fatal Exception Targeting S+ (version 31 and ...
Android 12 run: Fatal Exception Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE.
Read more >Runtime Error: Targeting S+ (version 31 and above) requires ...
Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. Strongly ...
Read more >PendingIntent - Android Developers
S , it will be required to explicitly specify the mutability of PendingIntents on creation with either (@link #FLAG_IMMUTABLE} or FLAG_MUTABLE .
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Updating the dep
androidx.media:media
to1.4.1
should fix the crashhttps://developer.android.com/jetpack/androidx/releases/media#media-1.4.1
@andrea689 : Flutter Sound 9.1.7 is released with your fix. Thank you for your collaboration.
Note : for several weeks i am having several warnings during an Android build. It seems to work fine but I do not have much time to try to understand.