在2.7.0或2.7.1这个版本能解决这个问题
在你的build.gradle文件中添加或修改成以下代码
1. 如果你是Java的项目添加下或修改成面的代码
dependencies {
implementation 'androidx.work:work-runtime:2.7.1'
}
2. 如果你是Kotlin的项目则添加或修改成下面这个
dependencies {
implementation 'androidx.work:work-runtime-ktx:2.7.1'
}
二选其一即可
希望能帮到你
android - Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent, On AlarmPingSender - Stack Overflow
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)