Google Play In-app Billing API version is less than 3

cas*_*orz 7 android android-billing android-inapp-purchase

I just started beta testing the 2.0 update to the billing library for the Play Store and a lot of my users are getting this error Google Play In-app Billing API version is less than 3.

这只是更新之前的时间问题,还是某些设备卡在旧版本上还是什么?

Ele*_*gyD 48

在未登录 Google Play 的情况下使用模拟器时,我开始看到此错误。
一旦我使用我的帐户登录 Google Play,错误就消失了。

  • 先试试这个! (2认同)

小智 10

In-app Billing API 版本与 Google Play Store 一起使用,v3 实际上已经很老了(至少 3 岁)

PBL 将检查用户的客户端版本,如果他们的设备上安装了非常旧的 Play 商店,则会返回此错误消息。如果您要从 AIDL 迁移到 PBL,并且之前没有检查客户的计费 API 版本,则最终可能会看到用户报告此问题。

如果您从 PBL 1.x 升级到 2.0,则不应期望出现此错误消息,因为 PBL 1.x 比 v3 更新,并且它也会执行此检查。在这种情况下,您可能需要向 Google 团队提交错误。

  • 我使用 com.android.billingclient:billing:3.0.2 但仍然收到很多此类错误。即使在最近的设备上(即带有 Android 11 的 S21),因此它不能依赖于旧的 Play 商店应用程序。有什么建议吗? (8认同)

Ale*_*Pad 9

这是正常的,因为当时它还没有连接到任何谷歌帐户。

因此,请确保您有一个支持 Google Play 服务的模拟器。

-> 转至 Google Play 并输入您的帐户凭据。关闭并重新打开应用程序后。

  • 这是针对实际用户的,而不是模拟器。 (3认同)