Fixing Error: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. When Generating APK or Executing in Android.

Tiempo de lectura: < 1 minuto Reading time: < 1 minutes If you encounter the following error when generating or running your APK: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent. You can solve it by adding the following: First, go to your build.gradle file. Scroll down to the dependencies ... Read more