BUILD FAILED: Execution failed for task ':app:processReleaseMainManifest'

We upgraded the SDK Version:31, as per the google’ new requirements. Now building the application is causing an error.

Task :app:processReleaseMainManifest FAILED
~/platforms/android/app/src/main/AndroidManifest.xml Error:
Apps targeting Android 12 and higher are required to specify an explicit value for android:exported when the corresponding component has an intent filter defined. See <activity>  |  Android Developers for details.
~/platforms/android/app/src/main/AndroidManifest.xml Error:
Apps targeting Android 12 and higher are required to specify an explicit value for android:exported when the corresponding component has an intent filter defined. See <activity>  |  Android Developers for details.

See http://g.co/androidstudio/manifest-merger for more information about the manifest merger.

If you are using Cordova, then you should update to cordova-android 11.
If you are using Capacitor, then you should update to Capacitor 4.x.

That should fix that problem for the app activity missing the android:exported