0

I know there are multiple answers to these questions, I tried them all which were suggested in other StackOverflow posts, such as

  • Using FlagImmutable, I changed all of the flags of PendingIntents
  • used the work-manager library in my app module, the stable one
  • Updated FireBase But still, application crashes in Android 12 and I get the following error: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
Benazir Sh
  • 81
  • 10
  • 1
    Have a look at the stacktrace to learn where exactly the pendingintent is used. It is likely created somewhere nearby. It might be yet another library you need to update. – laalto Feb 08 '22 at 09:39
  • Using google analytics instead of firebase analytics might be an issue – Abdullah Z Khan Feb 08 '22 at 09:40
  • @AbdullahZKhan I'm using FireBase analytics – Benazir Sh Feb 08 '22 at 09:44
  • @laalto I got D/com.facebook.FacebookSdk: getGraphApiVersion: v12.0 such line after run and crash, can this one be a reason? – Benazir Sh Feb 08 '22 at 09:50
  • crash stacktrace is E error log level, not D debug – laalto Feb 08 '22 at 09:51
  • Oh yeah. Thank you. E/com.facebook.GraphResponse: {HttpStatus: 400, errorCode: 100, subErrorCode: 33, errorType: GraphMethodException, errorMessage: Unsupported get request. Object with ID '1703607243113464' does not exist, cannot be loaded due to missing permissions, or does not support this operation. Please read the Graph API documentation at https://developers.facebook.com/docs/graph-api} – Benazir Sh Feb 08 '22 at 09:55
  • https://stackoverflow.com/questions/67045607/how-to-resolve-missing-pendingintent-mutability-flag-lint-warning-in-android-a – Manish Gorkha Feb 08 '22 at 10:24
  • @ManishGorkha I tried them all, unfortunately not working ( – Benazir Sh Feb 08 '22 at 11:12

0 Answers0