当前位置: 代码迷 >> 综合 >> Manifest merger failed : Apps targeting Android 12 and higher are required to specify an explicit va
  详细解决方案

Manifest merger failed : Apps targeting Android 12 and higher are required to specify an explicit va

热度:49   发布时间:2024-01-06 07:00:21.0

Android Studio启动app时报错:

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.

所用环境:Android studio 4.2.2,Pixel 2 API 29

解决办法参考:

 在AndroidManifest.xml文件中给activity添加android:exported,例如

<activity android:name=".MainActivity" android:exported="true">

  相关解决方案