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版本以上需要設(shè)置android:exported屬性
解決辦法很簡單有2種
方法一:
在清單文件中的activity中設(shè)置android:exported=“true”即可
?方法二:文章來源:http://www.zghlxwxcb.cn/news/detail-786817.html
將SDK的版本降低小于31即可文章來源地址http://www.zghlxwxcb.cn/news/detail-786817.html
到了這里,關(guān)于Manifest merger failed : Apps targeting Android 12 and higher are required to specify an explicit va的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!