Skip to content

Exception and app crash after cast device selected #13

@marekhalmo

Description

@marekhalmo

Hello,
i have an app that is working on multiple but one device..
The device is Realme GT Master Edition (RMX3363), Android 13 (June 5, 2023)

I click the cast button and then select a chromecast device.. the app crashes with following log:

Process: sk.maniacs.versecast, PID: 27562
E/AndroidRuntime(27562): java.lang.IllegalArgumentException: [xxxx MY APP PACKAGE xxxx]: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
E/AndroidRuntime(27562): 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(27562): at android.app.PendingIntent.checkFlags(PendingIntent.java:402)
E/AndroidRuntime(27562): at android.app.PendingIntent.getBroadcastAsUser(PendingIntent.java:672)
E/AndroidRuntime(27562): at android.app.PendingIntent.getBroadcast(PendingIntent.java:659)
E/AndroidRuntime(27562): at l3.n.j(Unknown Source:78)
E/AndroidRuntime(27562): at k3.c$a.a(Unknown Source:92)
E/AndroidRuntime(27562): at com.google.android.gms.common.api.internal.BasePendingResult$a.handleMessage(Unknown Source:60)
E/AndroidRuntime(27562): at android.os.Handler.dispatchMessage(Handler.java:106)
E/AndroidRuntime(27562): at b4.d.dispatchMessage(Unknown Source:0)
E/AndroidRuntime(27562): at android.os.Looper.loopOnce(Looper.java:240)
E/AndroidRuntime(27562): at android.os.Looper.loop(Looper.java:351)
E/AndroidRuntime(27562): at android.app.ActivityThread.main(ActivityThread.java:8381)
E/AndroidRuntime(27562): at java.lang.reflect.Method.invoke(Native Method)
E/AndroidRuntime(27562): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:584)
E/AndroidRuntime(27562): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1013)

Is there any way to fix this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions