Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE #2

Open
SmirnovM91 opened this issue Jan 18, 2022 · 0 comments

Comments

@SmirnovM91
Copy link

Android 12 crash

|-- flutter_sound_lite 8.4.2
|   |-- flutter_sound_platform_interface 8.4.2
|   |-- flutter_sound_web 8.4.2
|   |   |-- flutter_sound_platform_interface...
/AndroidRuntime(13058): Shutting down VM
E/AndroidRuntime(13058): FATAL EXCEPTION: main
E/AndroidRuntime(13058): Process: dev.amsmirnov.legizi, PID: 13058
E/AndroidRuntime(13058): java.lang.RuntimeException: Unable to create service com.dooboolab.TauEngine.FlautoBackgroundAudioService: java.lang.IllegalArgumentException: dev.amsmirnov.legizi: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
E/AndroidRuntime(13058): 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.
E/AndroidRuntime(13058): 	at android.app.ActivityThread.handleCreateService(ActivityThread.java:4500)
E/AndroidRuntime(13058): 	at android.app.ActivityThread.access$1700(ActivityThread.java:247)
E/AndroidRuntime(13058): 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2072)
E/AndroidRuntime(13058): 	at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime(13058): 	at android.os.Looper.loopOnce(Looper.java:201)
E/AndroidRuntime(13058): 	at android.os.Looper.loop(Looper.java:288)
E/AndroidRuntime(13058): 	at android.app.ActivityThread.main(ActivityThread.java:7839)
E/AndroidRuntime(13058): 	at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(13058): 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
E/AndroidRuntime(13058): 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant