Below are the challenges I faced so far when running an Android app with targetSDKVersion 31 on a phone with OS Version Android 12
1) App is not getting uploaded to store Error :- You uploaded an APK or Android App Bundle which has an activity, activity alias, service or broadcast receiver with intent filter, but without the 'android:exported' property set. This file can't be installed on Android 12 or higher. See: developer.android.com/about/versions/12/behavior-changes-12#exported
2) App is getting crashed java.lang.IllegalArgumentException: 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. FLAG_IMMUTABLE / FLAG_MUTABLE tag is required for all Pending Intents
Please help how to address these issues ????