Hi Ionic community,
I hope you’re all doing well! I am currently facing an issue while trying to build my Ionic Android app, and I could use some assistance.
Error Description: When attempting to build my Ionic Android app, I encountered the following error:
Error: "Execution failed for task ‘:app:processDebugMainManifest’.
Manifest merger failed: 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."
Android Build Error Image while running ionic cordova build android
:
It asks me to specify android:exported
in manifest file, although as you can see I have it already in my manifest file.
Manifest File:
Here I am describing my project details:
ionic info
:
Ionic:
Ionic CLI : 7.1.1 (/Users/kunalbamborde/.nvm/versions/node/v18.16.1/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 5.5.4
@angular-devkit/build-angular : 0.1101.4
@angular-devkit/schematics : 11.1.4
@angular/cli : 11.1.4
@ionic/angular-toolkit : 3.1.0
Cordova:
Cordova CLI : 12.0.0 (cordova-lib@12.0.1)
Cordova Platforms : android 10.1.2
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 24 other plugins)
Utility:
cordova-res : not installed globally
native-run : not installed globally
System:
Android SDK Tools : 26.1.1 (/Users/kunalbamborde/Library/Android/sdk)
NodeJS : v16.20.1 (/Users/kunalbamborde/.nvm/versions/node/v16.20.1/bin/node)
npm : 8.19.4
OS : macOS Unknown
Please let me know if I need to share anything else.