When using intent filters, please specify android:exported as well

Android Studio 更新至4.2.2版本后出现的问题(简单记录)
报错信息

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 12及以上版本的应用程序需要为Android:exported指定一个显式的值)
!](https://img-blog.csdnimg.cn/1b25c5e9b0ae4c4a8894f5b9343e9da8.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L0tFRVBfVE9EQVk=,size_16,color_FFFFFF,t_70)

 自动创建的是这样的

在这里插入图片描述

 

Guess you like

Origin blog.csdn.net/weixin_38107457/article/details/122223316