35

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.

Is this just a matter of time before they update or are some devices stuck on older versions or what?

casolorz
  • 8,486
  • 19
  • 93
  • 200

3 Answers3

77

I started seeing this error when using the Emulator without logging into Google Play.
Once I logged into Google Play with my account the error went away.

ElegyD
  • 4,393
  • 3
  • 21
  • 37
17

In-app Billing API version goes with the Google Play Store and v3 is actually quite old (at least 3 years old)

PBL will check user's client version and will return this error message if their devices have a very old Play Store installed on their devices. If you're migrating from AIDL to PBL and you didn't check client's billing API version before, you could end up with seeing users reporting this issue.

You shouldn't expect this error message if you're upgrading from PBL 1.x to 2.0 because PBL 1.x is newer than v3 and it will also do this check. You may want to file a bug to the Google team in this case.

DrPower
  • 445
  • 3
  • 6
  • I am going from PBL 1 to 2 but I didn't use to log the error message before in a way that I could see it without looking at the logs, so that might be why I was surprised by it. Thanks. – casolorz Jun 12 '19 at 15:51
  • 8
    I use com.android.billingclient:billing:3.0.2 and I'm still getting lots of these errors. Even on very recent devices (i.e. S21 with Android 11), so it cannot depend on old Play Store App. Any suggestion? – ARLabs Jul 01 '21 at 14:02
  • 1
    I had the last version of Google Play Store. However, since the phone I was using was new, I did not sign in into Google Play Store app. That's why the message appeared. – Jose Flavio Quispe Irrazábal Apr 17 '22 at 02:42
8

It was normal, because at that moment it is not connected to any Google account.

So make sure you have an emulator with Google Play services.

-> Go to Google Play and enter your account credentials. After you close and reopen the app.

AlexPad
  • 10,364
  • 3
  • 38
  • 48