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 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.
升级SDK到31后报错如上:
意思是说Android12版本以上需要设置android:exported属性
解决办法很简单有2种
方法一:
在清单文件中的activity中设置android:exported=“true”即可
方法二:
将SDK的版本降低小于31即可
更多推荐
已为社区贡献2条内容
所有评论(0)