play-services-tasks (com.google.android.gms:play-services-tasks)”的开发者向 SDK 版本 18.0.0

“play-services-tasks (com.google.android.gms:play-services-tasks)”的开发者向 SDK 版本 18.0.0 添加了以下备注:

play-services-tasks v18.0.0 has known issues that can lead to runtime NPEs (NullPointerException) when handling Task<Void> results in Kotlin code. We strongly recommend that you avoid using this version. This also impacts the SDKs listed in the December 9, 2021 release, because they all depend on play-services-tasks. A fix for this issue is included in play-services-tasks v18.0.1. See https://developers.google.com/android/guides/releases#december_16_2021

请使用 Google Play SDK 索引,详细了解您当前使用的 SDK 并更明智地选用 SDK。

解决方案: 升级依赖包版本:18.0.1

https://developers.google.com/android/guides/releases#december_16_2021

December 16, 2021

The latest updates to play-services-base and play-services-tasks resolve the issue that can lead to runtime NPEs (NullPointerException) when handling Task<Void> results in Kotlin code. If you're using any of the library versions listed in the December 09, 2021 release, you can avoid the runtime NPEs by explicitly depending on v18.0.1 of play-services-base and play-services-tasks. Add the following to the dependencies section of your build.gradle:

implementation 'com.google.android.gms:play-services-base:18.0.1'
implementation 'com.google.android.gms:play-services-tasks:18.0.1'

In January 2022, we plan to release new versions of the other artifacts released on December 09 with new POM dependencies on the 18.0.1 versions of play-services-base and play-services-tasks.

The latest update to Firebase includes changes to:

Firebase Android BoM (Bill of Materials)

Firebase SDK for Google Analytics

This Firebase release picks up the latest versions of play-services-base and play-services-tasks (v18.0.1) to fix the issue described in the December 09, 2021 release.

For more information, see the Firebase Android SDK Release Notes.

Artifacts released on maven.google.com

com.google.android.gms:play-services-base:18.0.1

com.google.android.gms:play-services-tasks:18.0.1

com.google.firebase:firebase-bom:29.0.3

com.google.firebase:firebase-core:20.0.2

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值