Android12报错

报错信息:Manifest merger failed : android:exported needs to be explicitly specified for . 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. 

解决:1、AndroidManifest.xml按照文档设置,无效

https://developer.android.com/guide/topics/manifest/activity-element#exported

2、无效Android12报错_第1张图片

 3、在上面操作的前提下修改红框内的参数,有效

Android12报错_第2张图片

 

你可能感兴趣的:(android,studio)