Hello. I am trying to build aab of my ionic app with help of cordova latest version. When i first build the app, the build was successful and then i tried to submit it to Google play store but got this error for play store:
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
So i looked online and found that i need to set android:exported=true in all activity and receiver tags that use intent-filter so i did the same but when i tried to build the app i got this error:
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ‘:app:processReleaseManifest’.
Manifest merger failed with multiple errors, see logs
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
BUILD FAILED in 31s
14 actionable tasks: 14 executed
Command failed with exit code 1: C:\givlly\filos\platforms\android\gradlew cdvBuildRelease -b C:\givlly\filos\platforms\android\build.gradle
[ERROR] An error occurred while running subprocess cordova.
cordova.cmd build android --release exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
I am using this command for building: ionic cordova build android --release
Please help me out.