Android 12 Crash on startup: PendingIntent mutability

I solved it hopefully. What you have to do when you get the error above:

  • Open the Unreal game project in Android Studio
  • Search with CTRL-SHIFT-F to all occurances of PendingIntent. (in the project, not the Android platform files)
  • When you see PendingIntent.FLAG_UPDATE_CURRENT or another flag change it to PendingIntent.FLAG_IMMUTABLE. Look for the getBroadcast documentation to learn more about flags (it can be 0 too): PendingIntent  |  Android Developers
  • Make a signed package in Android Studio (Google it)
  • Upload the .aab file and the IMMUTABLE error should be gone

If you still see an error regarding FLAG_IMMUTABLE, search again to files if you missed any.

More info here: All About PendingIntents. PendingIntents are an important part of… | by Nicole Borrelli | Android Developers | Medium

2 Likes