若出现以下错误:
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"
参考:文章来源:https://uudwc.com/A/pjwr5
java - Android Studio error: "Manifest merger failed: Apps targeting Android 12" - Stack Overflow文章来源地址https://uudwc.com/A/pjwr5