Skip to content

java.lang.IllegalArgumentException: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent #4

@xaiamov

Description

@xaiamov

New Android crashes on this module.

This should be fixed in this file: src/main/java/com/mranderson/locationsample/location/LocationUpdatesService.java

src: new Intent(this, MainActivity.class), 0);

fix: new Intent(this, MainActivity.class), PendingIntent.FLAG_IMMUTABLE);

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