因 androidx.work:work-runtime 版本过低导致的闪退

问题

今天在 BlackBox 盒子启动应用,在 Android13 上,启动使用 agp7 打出包又遇到了应用启动之后出现闪退,记录一下吧!

NewBlackbox

黑盒BlackBox,是一款虚拟引擎,可以在Android上克隆、运行虚拟应用,拥有免安装运行能力。黑盒可以掌控被运行的虚拟应用,做任何想做的事情。

在这里插入图片描述

在此之前我的应用 androidx.work:work-runtime:2.1.0 -> 2.7.0 版本是 2.1.0,升级到 2.7.0 问题不再复现了。

在这里插入图片描述

解决

    //fix: argeting S+ (version " + Build.VERSION_CODES.S
    //370                      + " and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE"
    //371                      + " be specified when creating a PendingIntent.\nStrongly consider"
    //372                      + " using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality"
    //373                      + " depends on the PendingIntent being mutable, e.g. if it needs to"
    //374                      + " be used with inline replies or bubbles.
    // 2.7.0   2.8.0
    configurations.all{
        resolutionStrategy.force 'androidx.work:work-runtime:2.7.0'
    }
  • 6
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值