美文网首页
google合规 android:exported

google合规 android:exported

作者: 霁逸lei | 来源:发表于2022-11-30 17:06 被阅读0次

您上传的 APK 或 Android App Bundle 内含活动、活动别名、服务或广播接收器,这些项目有 intent 过滤器,但没有“android:exported”属性设置。此文件无法在 Android 12 或更高版本上安装

解决方法 manifest四大组件添加“android:exported”

三方aar声明的属性处理Manifest merger failed with multiple errors, see logs解决方案

<activity
    android:name="com.tdx.AndroidCore.tdxAuxiliaryActivity"
    android:launchMode="singleTask"
    android:exported="false"
    tools:node="replace">
</activity>
merge  合并该attribute 所有的属性和子属性;
replace 替换其他的值,使用该清单文件的值(一般而言,都是替换掉低优先级的值)
strict    严格的意思,就是不同的清单文件,相同属性的值应该一样,否则编译失败。(一般而言,就是不同的清单文件同一个属性其值要一样)
remove  删除某个属性。
removeAll 删除某个属性及其嵌套的子属性。(相当于remove,不过是有些时候删除很多子属性时,方便一些)
merge-only-attribute :Merge attributes in this tag only; do not merge nested elements 。只合并属性,不合并嵌套的属性

相关文章

网友评论

      本文标题:google合规 android:exported

      本文链接:https://www.haomeiwen.com/subject/stfuxdtx.html