Skip to content

Fatal Exception: java.lang.IllegalArgumentException #28

@nicola73

Description

@nicola73

I have this error on Android 12
Fatal Exception: java.lang.IllegalArgumentException
com.teamsystem.peopleapp.store: 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.

android.app.PendingIntent.checkFlags (PendingIntent.java:382)
android.app.PendingIntent.getActivityAsUser (PendingIntent.java:465)
android.app.PendingIntent.getActivity (PendingIntent.java:451)
android.app.PendingIntent.getActivity (PendingIntent.java:415)
com.huawei.hms.api.b.getErrPendingIntent (HuaweiApiAvailabilityImpl.java:10)
com.huawei.hms.common.internal.BaseHmsClient.resolution (BaseHmsClient.java:3)
com.huawei.hms.common.internal.BaseHmsClient.checkAvailabilityAndConnect (BaseHmsClient.java:34)
com.huawei.hms.common.internal.BaseHmsClient.connect (BaseHmsClient.java:1)
com.huawei.hms.common.internal.HuaweiApiManager$ConnectionManager.connect (HuaweiApiManager.java:21)
com.huawei.hms.common.internal.HuaweiApiManager$ConnectionManager.sendRequest (HuaweiApiManager.java:22)
com.huawei.hms.common.internal.HuaweiApiManager.connectAndSendRequest (HuaweiApiManager.java:7)
com.huawei.hms.common.internal.HuaweiApiManager.handleMessage (HuaweiApiManager.java:7)
android.os.Handler.dispatchMessage (Handler.java:102)
android.os.Looper.loopOnce (Looper.java:226)
android.os.Looper.loop (Looper.java:313)
android.os.HandlerThread.run (HandlerThread.java:67)

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