[FIXED] i have added exported = "true" to activity which has intent-filter but still it shows this error

Issue

Task :app:processReleaseMainManifest FAILED
/Users/Ganesh/StudioProjects/sample/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 https://developer.android.com/guide/topics/manifest/activity-element#exported for details.

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

Execution failed for task ‘:app:processReleaseMainManifest’.

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. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.

  • 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.

+Adding merger error on manifest file.
Warning Package name 'uninitialized.application.id' used in: AndroidManifest.xml, AndroidManifest.xml. sample.carouselview manifest

Solution

I Checked all manifest files in my project. I couldn’t find any issues so, used a workaround by changing target sdk to targetSdkVersion 30.

Answered By – Ganesh Shetty

Answer Checked By – Dawn Plyler (Easybugfix Volunteer)

Leave a Reply

(*) Required, Your email will not be published