报错内容如下:
Manifest merger failed : android:exported needs to be explicitly specified for <activity>. 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.
大概意思是targeting大于等于Android 12时,如果有的Activity配置了Intent-filter,必须同时配置exported属性。
根据报错,有两种解决方案:
1、将build.gradle的targetSdk改成30以下
2、或者在AndroidManifest.xml的含有<Intent-filter>标签里添加export属性并赋值为true
最后锤子一下
问题不大!