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.
问题描述: Manifest合并失败:当组件定义了 < intent-filter> 时,针对 Android 12 及更高版本的应用需要为 “android:exported” 指定显式值(android:exported=“true”)。
以前加上intent-filter的话,exported就默认是true。Android 12之后开始强制大家声明exported属性**。**
例如:
<application
<activity android:name=“.actvitiy.MainActivity”
android:exported=“true”
<activity android:name=“.actvitiy.SchemeActivity”
android:exported=“true”