android - Push Kit 什么时候会包含 android :exported attributes required for Android 12?

标签 android kotlin push-notification huawei-mobile-services huawei-push-notification

关闭。这个问题是opinion-based .它目前不接受答案。












想改进这个问题?更新问题,以便 editing this post 可以用事实和引用来回答它.


去年关闭。







Improve this question




最新版 Push Kit (5.3.0.304) 针对 Android 12 编译时显示错误:

Installation failed due to: 'INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl520427088.tmp/base.apk (at Binary XML file line #349): com.huawei.hms.support.api.push.PushMsgReceiver: Targeting S+ (version 10000 and above) requires that an explicit value for android:exported be defined when intent filters are present'


由于 Android 12 要求所有 Intent 过滤器包含 android:exported 属性,因此出现此错误。这在 Android 12 更改页面上公开:https://developer.android.com/about/versions/12/behavior-changes-12#exported
包含此更改的 Push Kit 版本的大致发布日期是什么时候?

最佳答案

更新 :
刚刚与团队确认,请将推送套件版本升级到 6.1.0.300 将解决您的问题。

    // push kit
    implementation 'com.huawei.hms:push:6.1.0.300'

感谢您的反馈,经团队确认,我们将尽快发布适用于 Android 12 的版本,并在发布时通知您。

关于android - Push Kit 什么时候会包含 android :exported attributes required for Android 12?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68373122/

相关文章:

java - 客户端服务器android上的数据库

android - 仅创建一个 Service 实例 (Android)

android - 如何以编程方式退出android应用程序

java - 如何将 kotlin 文件注释为 java 的类

spring-boot - Spring Boot-使用prod属性覆盖的测试属性

xamarin - 启动 Activity 在 Android 13 中不起作用

android - 在自定义广播接收器中从推送通知打开时 react native 应用程序崩溃

android - 在 android 中运行启动器 Activity 时出现空指针异常

android - Notification.addAction 在 Android O 中不起作用

kotlin - 如何在 Kotlin 中按字母顺序对字符串进行排序