As of Android 12, android:exported must be set; use true to make the activity available to other apps, and false otherwise

After every build i am facing this below issue and this issue has been resolved when i add this prop in below file but when i rebuild my solution its automatically removed agin. where can i change this prop to make these changes permanently.

/app/android/capacitor-cordova-android-plugins/src/main/AndroidManifest.xml

As of Android 12, android:exported must be set; use true to make the activity available to other apps, and false otherwise.

ERROR


Resolved When I Add This, but this prop auto remove on next build

It seems like one of your cordova plugin is outdated and incompatible with Android 12.
What plugins did you use? Would you like to provide more info? (e.g. package.json)

I googled the nl.xservices.plugins.ShareChooserPendingIntent and found this https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin/pull/1158.

Did you use this plugin? (cordova-plugin-x-socialsharing)
If so, maybe you can try to update it to the latest version 6.0.4