我已将 exported = "true" 添加到具有 intent-filter 的 activity 但它仍然显示此错误

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

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.

有关清单合并的详细信息,请参阅 http://g.co/androidstudio/manifest-merger

任务“: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.

+在清单文件中添加合并错误。 Warning Package name 'uninitialized.application.id' used in: AndroidManifest.xml, AndroidManifest.xml. sample.carouselview manifest

我检查了项目中的所有清单文件。我找不到任何问题,因此通过将目标 sdk 更改为 targetSdkVersion 30.

来使用解决方法