Execution failed for task ‘:app:processDebugMainManifest‘.> Manifest merger failed : Apps targeting
若出现以下错误:
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. See https://developer.android.com/guide/topics/manifest/activity-element#exported for details.
可以通过该方法解决:
在 app->manifests->AndroidManifest.xml加入以下代码:
android:exported="true"

参考:
java - Android Studio error: "Manifest merger failed: Apps targeting Android 12" - Stack Overflow
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
